-
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
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
afercia
added
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[a11y] Keyboard & Focus
labels
Nov 24, 2022
Open in CodeSandbox Web Editor | VS Code | VS Code Insiders |
Size Change: 0 B Total Size: 1.33 MB ℹ️ View Unchanged
|
afercia
force-pushed
the
update/migrate-a11y-e2e-tests
branch
from
January 18, 2023 08:20
1020339
to
b8334d4
Compare
Flaky tests detected in b8334d4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3946977911
|
aristath
approved these changes
Jan 18, 2023
juanmaguitar
added
the
[Type] Build Tooling
Issues or PRs related to build tooling
label
Feb 1, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Build Tooling
Issues or PRs related to build tooling
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.
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