ESLint: Implement ARIA
Menu Pattern Enforcement via Linting for DropdownMenu
#125406
Annotations
4 errors and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/comments.spec.js#L57
1) [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]')
Expected string: "No results found."
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]')
9 × locator resolved to <p tabindex="0" role="document" draggable="true" data-title="Comment Template" data-type="core/comment-template" aria-label="Block: Comment Template" id="block-44408593-0a50-4e33-9dab-c625fc4a992a" data-block="44408593-0a50-4e33-9dab-c625fc4a992a" class="block-editor-block-list__block wp-block wp-block-comment-template">…</p>
- unexpected value ""
55 | 'role=document[name="Block: Comment Template"i]'
56 | )
> 57 | ).toContainText( 'No results found.' );
| ^
58 | } );
59 |
60 | test( 'Pagination links are working as expected', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/comments.spec.js:57:5
|
Run the tests:
test/e2e/specs/editor/blocks/comments.spec.js#L57
1) [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]')
Expected string: "No results found."
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]')
9 × locator resolved to <p tabindex="0" role="document" draggable="true" data-title="Comment Template" data-type="core/comment-template" aria-label="Block: Comment Template" id="block-9cbd56b4-6926-41c9-8b0d-ec8d18507c36" data-block="9cbd56b4-6926-41c9-8b0d-ec8d18507c36" class="block-editor-block-list__block wp-block wp-block-comment-template">…</p>
- unexpected value ""
55 | 'role=document[name="Block: Comment Template"i]'
56 | )
> 57 | ).toContainText( 'No results found.' );
| ^
58 | } );
59 |
60 | test( 'Pagination links are working as expected', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/comments.spec.js:57:5
|
Run the tests:
test/e2e/specs/editor/blocks/comments.spec.js#L57
1) [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toContainText(expected)
Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]')
Expected string: "No results found."
Received string: ""
Call log:
- expect.toContainText with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Comment Template"i]')
9 × locator resolved to <p tabindex="0" role="document" draggable="true" data-title="Comment Template" data-type="core/comment-template" aria-label="Block: Comment Template" id="block-c7c557be-c3bd-4454-a53e-bb793408ebcc" data-block="c7c557be-c3bd-4454-a53e-bb793408ebcc" class="block-editor-block-list__block wp-block wp-block-comment-template">…</p>
- unexpected value ""
55 | 'role=document[name="Block: Comment Template"i]'
56 | )
> 57 | ).toContainText( 'No results found.' );
| ^
58 | } );
59 |
60 | test( 'Pagination links are working as expected', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/comments.spec.js:57:5
|
Run the tests
Process completed with exit code 1.
|
Run the tests
1 failed
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments
206 passed (9.4m)
|
Loading