-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
[Cookies] Increased cookies banner font size for med/large screens to improve readability #2611
[Cookies] Increased cookies banner font size for med/large screens to improve readability #2611
Conversation
daffca5
to
53e7fcb
Compare
I am not sure but I dont think the broken build is related to this PR... the error is: |
I just ran Semaphore again and the same spec failed again. I think it needs fixing even though it may be unrelated to this PR. |
I rerun the build and its green now. |
I have a suspicion we might see this failing spec again, if the original spec was checking for something on the page which is now covered by the cookie banner once the page has fully loaded. We can keep an eye on it, but maybe we can configure feature specs to run without showing the cookie banner by default, and only show the banner in the specific tests that need it? |
Yes Matt! I need to leave global config as it was before the test. Which is banner disabled. That is probably causing the error. I'll do that and add a commit to this PR. Also, Ill put that (must keep global state in your tests) to the code conventions. |
Great! I've seen other random failing feature specs this week for "missing" UI elements which then passed after a restart, so I'm guessing it's the same thing. |
P.S. @luisramos0 for debugging issues like this locally you can add the line |
Thanks @Matt-Yorkley The convention "leave config as it was before the test" was already here: I have added a new commit to fix it for the cookies_spec. Thanks guys! |
|
||
# keeps config unchanged | ||
around do |example| | ||
original_config_value = Spree::Config[:cookies_policy_matomo_section] |
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 see you've added this for these 2 specs, but is there a global config to disable it on all the other specs by default?
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 see what you mean but the default value for it is false. so, you either get it nil or false in all other tests. I think that's enough.
Is there a place for global test config where I could set it to false? I can do that as well.
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.
Ah ok, I wasn't sure about the defaults.
I think there are no pending comments. Moving to Test Ready. |
I just staged this one here: https://staging.openfoodfrance.org/ |
What? Why?
Closes #2597
Increased font size for med/large screens and adapted CSS to keep the text and button visible in all screen sizes.
What should we test?
The cookies banner should be tested in terms of UX in different screen sizes. Functionality was not changed.
Release notes
Changelog Category: Changed
Cookies banner font size increased.