-
Notifications
You must be signed in to change notification settings - Fork 218
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
Remove focused playwright test so all tests run; fix broken tests #2194
Conversation
Size Change: 0 B Total Size: 849 kB ℹ️ View Unchanged
|
Reverting settings does not fix the issue :( |
@WordPress/openverse-frontend Drafting this while I look at the failing tests. |
…ay/pause click" test
@WordPress/openverse-maintainers unless there's some flaky tests I missed, all tests are now passing locally for me so I've marked it ready for review. Please review this if you are able; the second approver should merge if no changes are needed. |
@@ -59,7 +59,7 @@ test.describe("all results grid keyboard accessibility test", () => { | |||
) | |||
}) | |||
|
|||
test.only("should open audio results as links", async ({ page }) => { | |||
test("should open audio results as links", async ({ page }) => { |
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.
Oh dear.
We should add an ESLint restricted syntax rule to prevent this from happening.
{
"selector": "CallExpression > MemberExpression:matches([object.name=/(test|it|describe)/], [object.object.name=/(test|it|describe)/])[property.name='only']",
"message": "Do not commit .only"
}
{
"selector": "CallExpression > MemberExpression[object.object.name='it'][object.property.name='only']",
"message": "Do not commit .only"
}
That appears to work when I test it locally for *.only
, *.only.each
and *.concurrently.only
which are all the iterations I could find on the jest documentation.
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, the ESLint changes can be a separate issue and PR if merging this is urgent.
Good point @dhruvkb, I'll open a separate PR for it and merge this one with our approvals now 👍 |
Fixes
Fixes #2191 by @obulat 🤞
Description
This PR reverts the changes to the Playwright config introduced in #1920 in an attempt to fix Playwright e2e tests.I do not understand what in these changes makes Playwright not find all of the tests. @sarayourfriend, do you have an idea?We missed the
.only
added in one of the tests, which caused Playwright to only run that one test...Testing Instructions
Check the CI Playwright e2e tests log - it should have around 155 tests (instead of 1).
Locally, you can use
just frontend/run test:playwright -- e2e
to run the tests.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin