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 JS errors in system specs #8361

Merged
merged 2 commits into from
Oct 15, 2021
Merged

Fix JS errors in system specs #8361

merged 2 commits into from
Oct 15, 2021

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Oct 15, 2021

What? Why?

Closes #8356

One of our specs was leaking the Stripe configuration into other specs. Activating Stripe meant that other specs were trying to load the Stripe JS code without setting up Stripe correctly. That lead to JS errors in the console. I'm fixing the issue and I'm activating JS fails again.

What should we test?

Green build.

Release notes

Changelog Category: Technical changes

Avoid state leakage from one spec to others.

Dependencies

There are a lot of current pull requests which move feature specs to system specs. While JS errors are not raised in master, any of those pull requests could introduce a new fail in combination with this PR. It would be good to merge this one first and then rebase the others.

Activating Stripe meant that other specs were trying to load the Stripe
JS code without setting up Stripe correctly. That lead to JS errors in
the console.
Re-raising console errors helps us to find subtle bugs.
@mkllnk mkllnk self-assigned this Oct 15, 2021
@filipefurtad0 filipefurtad0 merged commit 28b2fa2 into openfoodfoundation:master Oct 15, 2021
@mkllnk mkllnk deleted the fix-js-errors branch November 26, 2021 05:51
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.

JS errors on system specs (red build)
3 participants