Repository navigation
Check accessibility in wf test, make the provided interfaces usable by keyboard and expose the tree to agents (#768) #791
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
915a824
Name the host-loop canvas and make the Life React board and PTY termi…
ambroise-leclerc 527a23e
Check accessibility in wf test and the starters, fix keyboard use of …
ambroise-leclerc 4f9c6b3
Document the accessibility checks, keyboard use and measured engine e…
ambroise-leclerc a95399c
Never read editable text into accessible names, close inspectors on E…
ambroise-leclerc 561bc79
Format the MCP instructions with the pinned clang-format (#768)
ambroise-leclerc 0049200
List editable controls in the accessibility tree, announce the Life R…
ambroise-leclerc e32ccd0
Report the selection of native options in the accessibility tree (#768)
ambroise-leclerc 7baac15
Wait for the fallback page to finish before removing its frame in the…
ambroise-leclerc 13ce18f
Read hidden labels in accessible names and keep the Life starter's an…
ambroise-leclerc 2f01d45
Fail only toBeAccessible when the locked axe-core cannot be chosen (#…
ambroise-leclerc 0672ffc
Leave modified keys to the browser in the keyboard handlers (#768)
ambroise-leclerc 2bdfaba
Warn instead of failing wf create when the starter's spec cannot be d…
ambroise-leclerc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // The accessibility check of the interface, with axe-core (WCAG 2.1 levels A and AA): wf install jasmine-core axe-core, | ||
| // then wf test. A passing run is not a conformance statement: see docs/ACCESSIBILITY.md of WebFront. | ||
| describe('Accessibility', () => { | ||
| let root; | ||
| beforeAll(async () => { | ||
| root = document.createElement('div'); | ||
| root.id = 'root'; | ||
| document.body.append(root); | ||
| await import('./main'); | ||
| // The interface may render after its module ran. | ||
| for (let attempt = 0; attempt < 200 && !root.querySelector('h1'); ++attempt) await new Promise(resolve => setTimeout(resolve, 10)); | ||
| }); | ||
|
|
||
| it('finds no violation in the interface', async () => { | ||
| expect(root.querySelector('h1')).not.toBeNull(); | ||
| await expectAsync(document).toBeAccessible(); | ||
| }); | ||
|
|
||
| it('reports a button without an accessible name', async () => { | ||
| const button = root.appendChild(document.createElement('button')); | ||
| try { await expectAsync(button).not.toBeAccessible(); } | ||
| finally { button.remove(); } | ||
| }); | ||
| }); |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.