Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix adoptable_pet issue and add tests #525

Merged
merged 1 commit into from
Mar 10, 2024
Merged

Fix adoptable_pet issue and add tests #525

merged 1 commit into from
Mar 10, 2024

Conversation

nsiwnf
Copy link
Collaborator

@nsiwnf nsiwnf commented Mar 10, 2024

🔗 Issue

Fixes #522

✍️ Description

Fixes linked issue and adds integration tests.
Expectation is that the adoptable_pets views are consistent across users - except for applicants being able to see their own application status

I don't know how to DRY up these tests - should this be a spec?

@nsiwnf nsiwnf self-assigned this Mar 10, 2024
@nsiwnf nsiwnf marked this pull request as ready for review March 10, 2024 20:59
Copy link
Collaborator

@kasugaijin kasugaijin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
I am personally fine with generic minitest, but someone else might have a preference to handle this differently. We do use another approach in other tests.

@kasugaijin
Copy link
Collaborator

kasugaijin commented Mar 10, 2024

We probably don't need to display the Become an Adopter button, top right, if the user is staff
image

@nsiwnf nsiwnf merged commit 393530f into main Mar 10, 2024
5 checks passed
@nsiwnf nsiwnf deleted the add-tests branch March 10, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix: Staff should be able to see and adoptable_pet
2 participants