Add option to toggle keyboard shortcuts on/off #125280
Annotations
7 errors and 1 notice
Run the tests:
test/e2e/specs/editor/various/a11y.spec.js#L81
1) [chromium] › editor/various/a11y.spec.js:50:2 › a11y (@Firefox, @WebKit) › should constrain tabbing within a modal
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=document')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=document')
9 × locator resolved to <div tabindex="0" role="document" aria-label="Scrollable section" class="components-modal__content is-scrollable">…</div>
- unexpected value "not focused"
79 |
80 | await pageUtils.pressKeys( 'Tab' );
> 81 | await expect( modalContent ).toBeFocused();
| ^
82 | } );
83 |
84 | test( 'should return focus to the first tabbable in a modal after blurring a tabbable', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y.spec.js:81:32
|
Run the tests:
test/e2e/specs/editor/various/a11y.spec.js#L81
1) [chromium] › editor/various/a11y.spec.js:50:2 › a11y (@Firefox, @WebKit) › should constrain tabbing within a modal
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=document')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=document')
9 × locator resolved to <div tabindex="0" role="document" aria-label="Scrollable section" class="components-modal__content is-scrollable">…</div>
- unexpected value "not focused"
79 |
80 | await pageUtils.pressKeys( 'Tab' );
> 81 | await expect( modalContent ).toBeFocused();
| ^
82 | } );
83 |
84 | test( 'should return focus to the first tabbable in a modal after blurring a tabbable', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y.spec.js:81:32
|
Run the tests:
test/e2e/specs/editor/various/a11y.spec.js#L81
1) [chromium] › editor/various/a11y.spec.js:50:2 › a11y (@Firefox, @WebKit) › should constrain tabbing within a modal
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=document')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=document')
9 × locator resolved to <div tabindex="0" role="document" aria-label="Scrollable section" class="components-modal__content is-scrollable">…</div>
- unexpected value "not focused"
79 |
80 | await pageUtils.pressKeys( 'Tab' );
> 81 | await expect( modalContent ).toBeFocused();
| ^
82 | } );
83 |
84 | test( 'should return focus to the first tabbable in a modal after blurring a tabbable', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y.spec.js:81:32
|
Run the tests:
test/e2e/specs/editor/various/a11y.spec.js#L120
2) [chromium] › editor/various/a11y.spec.js:105:2 › a11y (@Firefox, @WebKit) › should return focus to the last tabbable in a modal after blurring a tabbable and tabbing in reverse direction
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=button[name="Close"i]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=button[name="Close"i]')
9 × locator resolved to <button type="button" aria-label="Close" class="components-button is-compact has-icon">…</button>
- unexpected value "not focused"
118 | 'role=dialog[name="Keyboard shortcuts"i] >> role=button[name="Close"i]'
119 | )
> 120 | ).toBeFocused();
| ^
121 | } );
122 |
123 | test( 'should make the modal content focusable when it is scrollable', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y.spec.js:120:5
|
Run the tests:
test/e2e/specs/editor/various/a11y.spec.js#L120
2) [chromium] › editor/various/a11y.spec.js:105:2 › a11y (@Firefox, @WebKit) › should return focus to the last tabbable in a modal after blurring a tabbable and tabbing in reverse direction
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=button[name="Close"i]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=button[name="Close"i]')
9 × locator resolved to <button type="button" aria-label="Close" class="components-button is-compact has-icon">…</button>
- unexpected value "not focused"
118 | 'role=dialog[name="Keyboard shortcuts"i] >> role=button[name="Close"i]'
119 | )
> 120 | ).toBeFocused();
| ^
121 | } );
122 |
123 | test( 'should make the modal content focusable when it is scrollable', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y.spec.js:120:5
|
Run the tests:
test/e2e/specs/editor/various/a11y.spec.js#L120
2) [chromium] › editor/various/a11y.spec.js:105:2 › a11y (@Firefox, @WebKit) › should return focus to the last tabbable in a modal after blurring a tabbable and tabbing in reverse direction
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=button[name="Close"i]')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for locator('role=dialog[name="Keyboard shortcuts"i]').locator('role=button[name="Close"i]')
9 × locator resolved to <button type="button" aria-label="Close" class="components-button is-compact has-icon">…</button>
- unexpected value "not focused"
118 | 'role=dialog[name="Keyboard shortcuts"i] >> role=button[name="Close"i]'
119 | )
> 120 | ).toBeFocused();
| ^
121 | } );
122 |
123 | test( 'should make the modal content focusable when it is scrollable', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y.spec.js:120:5
|
Run the tests
Process completed with exit code 1.
|
Run the tests
2 failed
[chromium] › editor/various/a11y.spec.js:50:2 › a11y (@Firefox, @WebKit) › should constrain tabbing within a modal
[chromium] › editor/various/a11y.spec.js:105:2 › a11y (@Firefox, @WebKit) › should return focus to the last tabbable in a modal after blurring a tabbable and tabbing in reverse direction
1 skipped
195 passed (8.8m)
|
Loading