-
-
Notifications
You must be signed in to change notification settings - Fork 478
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
1090 add default casa logo #1144
Conversation
|
||
visit volunteers_path | ||
|
||
expect(page).to have_xpath("//img[@src = '/packs-test/media/src/images/default-logo-c9048fc43854499e952e4b62a505bf35.png' and @alt='CASA Logo']") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this hash will stay the same over time? But maybe it will?
'/packs-test/media/src/images/default-logo-c9048fc43854499e952e4b62a505bf35.png
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this hash will stay the same since we're on webpacker v 5.2, which uses contenthash
instead of chunkhash
to generate this -- it should be 100% based on the file contents.
That said, I'm happy to update this to just look for 'default-logo' so the test is more resilient :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave it as is and if it breaks then we'll change it :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
What github issue is this PR for, if any?
Resolves #1090
What changed, and why?
For organizations without a set logo, the sidebar will now display the default CASA logo.
How will this affect user permissions?
No change to permissions.
How is this tested? (please write tests!) 💖💪
spec/system/admin_views_volunteers_page_spec.rb
andspec/views/layouts/sidebar.html.erb_spec.rb
to ensure xpath to default-logo is present on pageScreenshots please :)
View before change (logged in as [email protected], but this will also change supervisor and volunteer views):
View after change:
Feelings gif (optional)