Skip to content

E2E Utils: Use frameLocator for retrieving editor canvas #85382

E2E Utils: Use frameLocator for retrieving editor canvas

E2E Utils: Use frameLocator for retrieving editor canvas #85382

Triggered via pull request October 3, 2023 10:51
Status Success
Total duration 30m 18s
Artifacts 2

end2end-test.yml

on: pull_request
Matrix: e2e-playwright
Matrix: e2e-puppeteer
Report to GitHub
3m 20s
Report to GitHub
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 4 notices
[webkit] › editor/various/a11y-region-navigation.spec.js:15:2 › Region navigation (@firefox: test/e2e/specs/editor/various/a11y-region-navigation.spec.js#L33
1) [webkit] › editor/various/a11y-region-navigation.spec.js:15:2 › Region navigation (@Firefox, @WebKit) › navigates forward and back again Error: expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=region[name="Editor top bar"i]') - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - waiting for locator('role=region[name="Editor top bar"i]') - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" - locator resolved to <div role="region" tabindex="-1" aria-label="Editor t…>…</div> - unexpected value "not focused" 31 | 'role=region[name="Editor top bar"i]' 32 | ); > 33 | await expect( editorTopBar ).toBeFocused(); | ^ 34 | 35 | // Navigate to next/second region and check that we made it. 36 | await page.keyboard.press( 'Control+`' ); at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/a11y-region-navigation.spec.js:33:32
[webkit] › editor/various/splitting-merging.spec.js:182:2 › splitting and merging blocks (@firefox: test/e2e/specs/editor/various/splitting-merging.spec.js#L208
2) [webkit] › editor/various/splitting-merging.spec.js:182:2 › splitting and merging blocks (@Firefox, @WebKit) › should gracefully handle if placing caret in empty container Error: expect(received).toBe(expected) // Object.is equality - Expected - 1 + Received + 1 <!-- wp:paragraph --> - <p><strong>Foo</strong></p> + <p><strong>oo</strong></p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p></p> <!-- /wp:paragraph --> 206 | // Check the content. 207 | const content = await editor.getEditedPostContent(); > 208 | expect( content ).toBe( | ^ 209 | `<!-- wp:paragraph --> 210 | <p><strong>Foo</strong></p> 211 | <!-- /wp:paragraph --> at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:208:21
[webkit] › editor/various/splitting-merging.spec.js:325:2 › splitting and merging blocks (@firefox: test/e2e/specs/editor/various/splitting-merging.spec.js#L337
3) [webkit] › editor/various/splitting-merging.spec.js:325:2 › splitting and merging blocks (@Firefox, @WebKit) › should undo split in one go Error: expect(received).toMatchObject(expected) - Expected - 8 + Received + 1 - Array [ - Object { - "attributes": Object { - "content": "12", - }, - "name": "core/paragraph", - }, - ] + Array [] 335 | 336 | // Check the content. > 337 | expect( await editor.getBlocks() ).toMatchObject( [ | ^ 338 | { 339 | name: 'core/paragraph', 340 | attributes: { at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:337:38
[webkit] › editor/various/splitting-merging.spec.js:347:2 › splitting and merging blocks (@firefox: test/e2e/specs/editor/various/splitting-merging.spec.js#L362
4) [webkit] › editor/various/splitting-merging.spec.js:347:2 › splitting and merging blocks (@Firefox, @WebKit) › should not split with line break in front (-firefox) Error: expect(received).toBe(expected) // Object.is equality - Expected - 4 + Received + 0 - <!-- wp:paragraph --> - <p>1</p> - <!-- /wp:paragraph --> - <!-- wp:paragraph --> <p>2</p> <!-- /wp:paragraph --> 360 | // Check the content. 361 | const content = await editor.getEditedPostContent(); > 362 | expect( content ).toBe( | ^ 363 | `<!-- wp:paragraph --> 364 | <p>1</p> 365 | <!-- /wp:paragraph --> at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:362:21
[webkit] › editor/various/splitting-merging.spec.js:440:3 › splitting and merging blocks (@firefox: test/e2e/specs/editor/various/splitting-merging.spec.js#L451
5) [webkit] › editor/various/splitting-merging.spec.js:440:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on backspace Error: expect(received).toMatchObject(expected) - Expected - 1 + Received + 1 @@ -1,9 +1,9 @@ Array [ Object { "attributes": Object { - "content": "hi", + "content": "i", }, "name": "core/paragraph", }, Object { "attributes": Object { 449 | await page.keyboard.press( 'Backspace' ); 450 | > 451 | expect( await editor.getBlocks() ).toMatchObject( snap1 ); | ^ 452 | 453 | await page.keyboard.press( 'Backspace' ); 454 | // Carret should be in the first block and at the proper position. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/splitting-merging.spec.js:451:39
🎭 Playwright Run Summary
1 skipped 230 passed (14.6m)
🎭 Playwright Run Summary
5 flaky [webkit] › editor/various/a11y-region-navigation.spec.js:15:2 › Region navigation (@Firefox, @WebKit) › navigates forward and back again [webkit] › editor/various/splitting-merging.spec.js:182:2 › splitting and merging blocks (@Firefox, @WebKit) › should gracefully handle if placing caret in empty container [webkit] › editor/various/splitting-merging.spec.js:325:2 › splitting and merging blocks (@Firefox, @WebKit) › should undo split in one go [webkit] › editor/various/splitting-merging.spec.js:347:2 › splitting and merging blocks (@Firefox, @WebKit) › should not split with line break in front (-firefox) [webkit] › editor/various/splitting-merging.spec.js:440:3 › splitting and merging blocks (@Firefox, @WebKit) › test restore selection when merge produces more than one block › on backspace 2 skipped 215 passed (18.9m)
🎭 Playwright Run Summary
227 passed (18.8m)
🎭 Playwright Run Summary
11 skipped 216 passed (18.7m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
4.31 MB
flaky-tests-report Expired
22.4 KB