Skip to content

Site Title: Fix logic for 'aria-current' attribute (#68909) #125413

Site Title: Fix logic for 'aria-current' attribute (#68909)

Site Title: Fix logic for 'aria-current' attribute (#68909) #125413

Triggered via push March 5, 2025 04:07
Status Failure
Total duration 18m 13s
Artifacts 2

end2end-test.yml

on: push
Matrix: e2e-playwright
Merge Artifacts
5s
Merge Artifacts
Report to GitHub
0s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 8 notices
[chromium] › editor/various/typewriter.spec.js:187:2 › Typewriter › should scroll caret into view from the top: test/e2e/specs/editor/various/typewriter.spec.js#L273
1) [chromium] › editor/various/typewriter.spec.js:187:2 › Typewriter › should scroll caret into view from the top Error: expect(received).toBeGreaterThan(expected) Expected: > 5.59375 Received: 5.59375 271 | const newTopPosition = await typewriterUtils.getCaretPosition(); 272 | > 273 | expect( newTopPosition ).toBeGreaterThan( topPosition ); | ^ 274 | 275 | // Should maintain new caret position. 276 | await page.keyboard.press( 'Enter' ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/typewriter.spec.js:273:28
[chromium] › editor/various/typewriter.spec.js:187:2 › Typewriter › should scroll caret into view from the top: test/e2e/specs/editor/various/typewriter.spec.js#L273
1) [chromium] › editor/various/typewriter.spec.js:187:2 › Typewriter › should scroll caret into view from the top Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeGreaterThan(expected) Expected: > 5.59375 Received: 5.59375 271 | const newTopPosition = await typewriterUtils.getCaretPosition(); 272 | > 273 | expect( newTopPosition ).toBeGreaterThan( topPosition ); | ^ 274 | 275 | // Should maintain new caret position. 276 | await page.keyboard.press( 'Enter' ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/typewriter.spec.js:273:28
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments: 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-cb361249-a249-4c4d-8ca3-c7dab43f98d5" data-block="cb361249-a249-4c4d-8ca3-c7dab43f98d5" 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
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments: 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-681c444b-4b67-4ece-8448-31ab9d3e9acd" data-block="681c444b-4b67-4ece-8448-31ab9d3e9acd" 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
[chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments: 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-1937c5d1-b814-4303-a29c-e07c4fb91a09" data-block="1937c5d1-b814-4303-a29c-e07c4fb91a09" 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
Playwright - 1
Process completed with exit code 1.
[chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post: test/e2e/specs/editor/various/preview.spec.js#L75
1) [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Hello World! And more." Received string: "Hello World!" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Hello World!</h1> - unexpected value "Hello World!" 73 | 74 | // Title in preview should match updated input. > 75 | await expect( previewTitle ).toHaveText( 'Hello World! And more.' ); | ^ 76 | 77 | // Published preview URL should include ID and nonce parameters. 78 | const { searchParams } = new URL( previewPage.url() ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:75:32
[chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post: test/e2e/specs/editor/various/preview.spec.js#L75
1) [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Hello World! And more." Received string: "Hello World!" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Hello World!</h1> - unexpected value "Hello World!" 73 | 74 | // Title in preview should match updated input. > 75 | await expect( previewTitle ).toHaveText( 'Hello World! And more.' ); | ^ 76 | 77 | // Published preview URL should include ID and nonce parameters. 78 | const { searchParams } = new URL( previewPage.url() ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:75:32
[chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post: test/e2e/specs/editor/various/preview.spec.js#L75
1) [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Hello World! And more." Received string: "Hello World!" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Hello World!</h1> - unexpected value "Hello World!" 73 | 74 | // Title in preview should match updated input. > 75 | await expect( previewTitle ).toHaveText( 'Hello World! And more.' ); | ^ 76 | 77 | // Published preview URL should include ID and nonce parameters. 78 | const { searchParams } = new URL( previewPage.url() ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:75:32
[chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses: test/e2e/specs/editor/various/preview.spec.js#L182
2) [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Lorem Ipsum" Received string: "Lorem" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Lorem</h1> - unexpected value "Lorem" 180 | 181 | // Title in preview should match updated input. > 182 | await expect( previewTitle ).toHaveText( 'Lorem Ipsum' ); | ^ 183 | 184 | // Return to editor and switch to Draft. 185 | await editorPage.bringToFront(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:182:32
[chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses: test/e2e/specs/editor/various/preview.spec.js#L182
2) [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Lorem Ipsum" Received string: "Lorem" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Lorem</h1> - unexpected value "Lorem" 180 | 181 | // Title in preview should match updated input. > 182 | await expect( previewTitle ).toHaveText( 'Lorem Ipsum' ); | ^ 183 | 184 | // Return to editor and switch to Draft. 185 | await editorPage.bringToFront(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:182:32
[chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses: test/e2e/specs/editor/various/preview.spec.js#L182
2) [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "Lorem Ipsum" Received string: "Lorem" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">Lorem</h1> - unexpected value "Lorem" 180 | 181 | // Title in preview should match updated input. > 182 | await expect( previewTitle ).toHaveText( 'Lorem Ipsum' ); | ^ 183 | 184 | // Return to editor and switch to Draft. 185 | await editorPage.bringToFront(); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:182:32
[chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview: test/e2e/specs/editor/various/preview.spec.js#L273
3) [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "title 2" Received string: "title 1" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">title 1</h1> - unexpected value "title 1" 271 | 272 | // Title in preview should match input. > 273 | await expect( previewTitle ).toHaveText( 'title 2' ); | ^ 274 | await expect( previewContent ).toHaveText( 'content 2' ); 275 | 276 | // Make sure the editor is active for the afterEach function. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:273:32
[chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview: test/e2e/specs/editor/various/preview.spec.js#L273
3) [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "title 2" Received string: "title 1" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">title 1</h1> - unexpected value "title 1" 271 | 272 | // Title in preview should match input. > 273 | await expect( previewTitle ).toHaveText( 'title 2' ); | ^ 274 | await expect( previewContent ).toHaveText( 'content 2' ); 275 | 276 | // Make sure the editor is active for the afterEach function. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:273:32
[chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview: test/e2e/specs/editor/various/preview.spec.js#L273
3) [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: locator('role=heading[level=1]') Expected string: "title 2" Received string: "title 1" Call log: - expect.toHaveText with timeout 5000ms - waiting for locator('role=heading[level=1]') 9 × locator resolved to <h1 class="entry-title">title 1</h1> - unexpected value "title 1" 271 | 272 | // Title in preview should match input. > 273 | await expect( previewTitle ).toHaveText( 'title 2' ); | ^ 274 | await expect( previewContent ).toHaveText( 'content 2' ); 275 | 276 | // Make sure the editor is active for the afterEach function. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/preview.spec.js:273:32
Playwright - 4
Process completed with exit code 1.
🎭 Playwright Run Summary
2 skipped 203 passed (6.1m)
🎭 Playwright Run Summary
1 flaky [chromium] › editor/various/typewriter.spec.js:187:2 › Typewriter › should scroll caret into view from the top 1 skipped 200 passed (8.1m)
🎭 Playwright Run Summary
1 skipped 197 passed (7.6m)
🎭 Playwright Run Summary
1 skipped 204 passed (8.4m)
🎭 Playwright Run Summary
1 failed [chromium] › editor/blocks/comments.spec.js:45:2 › Comments › We show no results message if there are no comments 206 passed (9.2m)
🎭 Playwright Run Summary
3 failed [chromium] › editor/various/preview.spec.js:17:2 › Preview › should open a preview window for a new post [chromium] › editor/various/preview.spec.js:148:2 › Preview › should display the correct preview when switching between published and draft statuses [chromium] › editor/various/preview.spec.js:228:2 › Preview with Custom Fields enabled › displays edits to the post title and content in the preview 1 skipped 194 passed (9.6m)
🎭 Playwright Run Summary
3 skipped 188 passed (10.7m)
🎭 Playwright Run Summary
1 skipped 208 passed (10.8m)

Artifacts

Produced during runtime
Name Size
failures-artifacts
37.6 MB
flaky-tests-report
1.08 KB