-
Notifications
You must be signed in to change notification settings - Fork 63
Organize playwright test tapes into folders #1513
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/1513 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: +1 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
b0abff3
to
398d132
Compare
Playwright Failure Test Results It looks like some of the Playwright tests failed. You can download the Playwright trace https://github.com/WordPress/openverse-frontend/actions/runs/2467659309 Read more about how to use this artifact here: https://github.com/WordPress/openverse-frontend/blob/main/test/playwright/README.md#debugging |
Never mind! I was accidentally looking only at a single random commit in the middle of this PR's history. I have no idea how GitHub decides whether to show me the full PR or just one commit. So bizarre! |
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.
LGTM! Much more organized.
Shall we add a README describing the folders and when to put things in the components vs the page tests? Additionally, when to choose to test a component on an actual page instead of writing a story for it and writing the e2e tests for it there.
Playwright Failure Test Results It looks like some of the Playwright tests failed. You can download the Playwright trace https://github.com/WordPress/openverse-frontend/actions/runs/2475350050 Read more about how to use this artifact here: https://github.com/WordPress/openverse-frontend/blob/main/test/playwright/README.md#debugging |
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.
This seems reasonable to me. Having the tapes organised makes a huge difference.
Fixes
Related to #797 by @sarayourfriend
Not strictly related, but adding this change would greatly simplify navigating the tapes while working on #797.
Marked as high because further work on testing should be based on this change.
Description
This PR moves all the tapes used in the Playwright tests into folders based on the request type:
detail
,search
,related
andthumb
, and on the media type inside those folders. This means we can hide the folder and don't have to scroll as much in the IDE file list.It also splits the visual regression tests into two folders: pages and components.
Testing Instructions
Passing CI should be enough.
The main change is in
test/proxy.js
file.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin