-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Migrate a11y e2e tests to Playwright #46038
Conversation
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
1020339
to
b8334d4
Compare
Flaky tests detected in b8334d4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3946977911
|
Part of #38851.
Related: #42653
What?
Migrates the
a11y
E2E tests to Playwright.For now, it's a Draft PR because running the tests also with Firefox and Webkit surfaced new failures of the Constrained tabbing component. The previous tests passed because they only ran with Chromium.
Failures appear to be related to different native browser behaviors that aren't taken into account by the current implementation. Will create a new issue.
Why?
Part of the migration plan. Also, these tests need to run on multiple browsers as the tested features rely on native browsers behavior.
How?
packages/e2e-tests/specs/editor/various/a11y.test.js
test/e2e/specs/editor/various/a11y.spec.js
Testing Instructions
To run the tests with a visible browser window:
npm run test:e2e:playwright -- --headed editor/various/a11y.spec.js
headless mode:
npm run test:e2e:playwright -- editor/various/a11y.spec.js
The 4 test will run in Chromium, Webkit, and Firefox (for a total of 12 tests executed).
Screenshots or screencast