-
Notifications
You must be signed in to change notification settings - Fork 214
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 flaky e2e preferences test #5044
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openverse-bot
added
🧱 stack: frontend
Related to the Nuxt frontend
🟥 priority: critical
Must be addressed ASAP
🛠 goal: fix
Bug fix
💻 aspect: code
Concerns the software code in the repository
labels
Oct 18, 2024
Latest k6 run output1
Footnotes
|
obulat
force-pushed
the
fix/preferences-test
branch
3 times, most recently
from
October 18, 2024 06:20
cb3f54a
to
75630ac
Compare
obulat
force-pushed
the
fix/preferences-test
branch
from
October 18, 2024 07:15
75630ac
to
a849ad1
Compare
obulat
force-pushed
the
fix/preferences-test
branch
from
October 18, 2024 08:22
a849ad1
to
22e52a5
Compare
dhruvkb
approved these changes
Oct 18, 2024
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.
That simplifies the logic by a lot!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟥 priority: critical
Must be addressed ASAP
🧱 stack: frontend
Related to the Nuxt frontend
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes
Fixes #5001 by @obulat
Description
The flakiness was caused by the fact that we cannot test if the preference was fixed in a robust way. Even if we detect that the switch state changed, it does not yet mean that the feature flag state was updated.
I updated the preference page to add the easily queriable state of the feature flag to the page.
Now, if we assert that the state text is correct, we can be certain that the feature flag was updated (and it wasn't only the switch update).
Testing Instructions
The CI should pass.
Checklist
Update index.md
).main
) or a parent feature branch.ov just catalog/generate-docs
for catalogPRs) or the media properties generator (
ov just catalog/generate-docs media-props
for the catalog or
ov just api/generate-docs
for the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin