-
Notifications
You must be signed in to change notification settings - Fork 63
Make Playwright tests less flaky by using storybook to test VMediaReuse #1946
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1946 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: -226 B (0%) Total Size: 815 kB
ℹ️ View Unchanged
|
ac92fbb
to
f0ee0bb
Compare
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.
Would adding a "wait for" poll to the original tests also have fixed this, potentially, or would it just have moved the flakiness elsewhere?
I've mentioned in the linked issue some things I've tried to fix this problem, but unfortunately, nothing was a permanent solution to flakiness.
I've tried several other options, including waiting for network status and completely blocking the loading of the main image. In addition to not working correctly, they still fail.
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.
For testing a single component, Storybook should have been the first choice! Thanks for fixing this.
Fixes
Fixes #1945 by @obulat
Description
This PR moves the VMediaReuse tests that test the license attribution tabs to a Storybook test. This makes them much less flaky.
The snapshots are updated, now they don't have a white padding around them:
Testing Instructions
The CI tests should pass.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin