Skip to content

[WIP] Provide standardised tools for mapping Data to Link attributes #85215

[WIP] Provide standardised tools for mapping Data to Link attributes

[WIP] Provide standardised tools for mapping Data to Link attributes #85215

Triggered via pull request September 29, 2023 12:34
Status Failure
Total duration 32m 45s
Artifacts 2

end2end-test.yml

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

Annotations

14 errors and 4 notices
Puppeteer - 2: packages/e2e-tests/specs/editor/various/inserting-blocks.test.js#L209
Error: expect(received).toMatchSnapshot() Snapshot name: `Inserting blocks inserts blocks at root level when using the root appender while selection is in an inner block 1` - Snapshot - 3 + Received + 1 "<!-- wp:buttons --> - <div class="wp-block-buttons"><!-- wp:button --> - <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">1.1</a></div> - <!-- /wp:button --></div> + <div class="wp-block-buttons"><!-- wp:button /--></div> <!-- /wp:buttons --> <!-- wp:paragraph --> <p>2</p> <!-- /wp:paragraph -->" at Object.toMatchSnapshot (/home/runner/work/gutenberg/gutenberg/packages/e2e-tests/specs/editor/various/inserting-blocks.test.js:209:42) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Puppeteer - 2: packages/e2e-tests/specs/editor/various/inserting-blocks.test.js#L135
Error: expect(jest.fn()).not.toHaveErrored(expected) Expected mock function not to be called but it was called with: ["TypeError: r.toLink is not a function at $C (http://localhost:8889/wp-content/plugins/gutenberg/build/block-editor/index.min.js?ver=c8affd9d20babaed296f:135:24411) at edit (http://localhost:8889/wp-content/plugins/gutenberg/build/block-library/index.min.js?ver=df3cc96e9d1077e917fc:7:29075) at St (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:47627) at $s (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:120574) at Sl (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88649) at kl (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88577) at bl (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:88440) at sl (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:85264) at dl (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:85651) at Nn (http://localhost:8889/wp-content/plugins/gutenberg/build/vendors/react-dom.min.js?ver=18:1:32464)"] console.error() should not be used unless explicitly expected See https://www.npmjs.com/package/@wordpress/jest-console for details. at Object.assertExpectedCalls (/home/runner/work/gutenberg/gutenberg/packages/jest-console/build/@wordpress/jest-console/src/index.js:32:40) at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10) at _callCircusHook (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:280:40) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:253:5) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:147:7) at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9) at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3) at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34)
Puppeteer - 2
Process completed with exit code 1.
[webkit] › editor/various/multi-block-selection.spec.js:1182:2 › Multi-block selection › should partially select with shift + click (@webkit): test/e2e/specs/editor/various/multi-block-selection.spec.js#L1225
1) [webkit] › editor/various/multi-block-selection.spec.js:1182:2 › Multi-block selection › should partially select with shift + click (@WebKit) Error: expect(received).toMatchObject(expected) - Expected - 1 + Received + 1 Array [ Object { "attributes": Object { - "content": "<strong>1</strong>|2", + "content": "|", }, "name": "core/paragraph", }, ] Call Log: - Timeout 5000ms exceeded while waiting on the predicate 1223 | // Ensure selection is in the correct place. 1224 | await page.keyboard.type( '|' ); > 1225 | await expect.poll( editor.getBlocks ).toMatchObject( [ | ^ 1226 | { 1227 | name: 'core/paragraph', 1228 | attributes: { content: '<strong>1</strong>|2' }, at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/multi-block-selection.spec.js:1225:3
[chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content: test/e2e/specs/editor/blocks/buttons.spec.js#L15
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ─────── Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 13 | await expect( 14 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 15 | ).toBeFocused(); | ^ 16 | await page.keyboard.type( 'Content' ); 17 | 18 | // Check the content. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:15:5
[chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content: test/e2e/specs/editor/blocks/buttons.spec.js#L15
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ─────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 13 | await expect( 14 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 15 | ).toBeFocused(); | ^ 16 | await page.keyboard.type( 'Content' ); 17 | 18 | // Check the content. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:15:5
[chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content: test/e2e/specs/editor/blocks/buttons.spec.js#L15
1) [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ─────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 13 | await expect( 14 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 15 | ).toBeFocused(); | ^ 16 | await page.keyboard.type( 'Content' ); 17 | 18 | // Check the content. at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:15:5
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter): test/e2e/specs/editor/blocks/buttons.spec.js#L40
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter) Error: expect(received).toBe(expected) // Object.is equality - Expected - 3 + Received + 1 <!-- wp:buttons --> - <div class="wp-block-buttons"><!-- wp:button --> - <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div> - <!-- /wp:button --></div> + <div class="wp-block-buttons"><!-- wp:button /--></div> <!-- /wp:buttons --> 38 | // Check the content. 39 | const content = await editor.getEditedPostContent(); > 40 | expect( content ).toBe( | ^ 41 | `<!-- wp:buttons --> 42 | <div class="wp-block-buttons"><!-- wp:button --> 43 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div> at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:40:21
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter): test/e2e/specs/editor/blocks/buttons.spec.js#L40
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter) Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 3 + Received + 1 <!-- wp:buttons --> - <div class="wp-block-buttons"><!-- wp:button --> - <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div> - <!-- /wp:button --></div> + <div class="wp-block-buttons"><!-- wp:button /--></div> <!-- /wp:buttons --> 38 | // Check the content. 39 | const content = await editor.getEditedPostContent(); > 40 | expect( content ).toBe( | ^ 41 | `<!-- wp:buttons --> 42 | <div class="wp-block-buttons"><!-- wp:button --> 43 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div> at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:40:21
[chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter): test/e2e/specs/editor/blocks/buttons.spec.js#L40
2) [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter) Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality - Expected - 3 + Received + 1 <!-- wp:buttons --> - <div class="wp-block-buttons"><!-- wp:button --> - <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div> - <!-- /wp:button --></div> + <div class="wp-block-buttons"><!-- wp:button /--></div> <!-- /wp:buttons --> 38 | // Check the content. 39 | const content = await editor.getEditedPostContent(); > 40 | expect( content ).toBe( | ^ 41 | `<!-- wp:buttons --> 42 | <div class="wp-block-buttons"><!-- wp:button --> 43 | <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">Content</a></div> at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:40:21
[chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed: test/e2e/specs/editor/blocks/buttons.spec.js#L58
3) [chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 56 | await expect( 57 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 58 | ).toBeFocused(); | ^ 59 | await pageUtils.pressKeys( 'primary+k' ); 60 | await expect( 61 | page.locator( 'role=combobox[name="Link"i]' ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:58:5
[chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed: test/e2e/specs/editor/blocks/buttons.spec.js#L58
3) [chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 56 | await expect( 57 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 58 | ).toBeFocused(); | ^ 59 | await pageUtils.pressKeys( 'primary+k' ); 60 | await expect( 61 | page.locator( 'role=combobox[name="Link"i]' ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:58:5
[chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed: test/e2e/specs/editor/blocks/buttons.spec.js#L58
3) [chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 56 | await expect( 57 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 58 | ).toBeFocused(); | ^ 59 | await pageUtils.pressKeys( 'primary+k' ); 60 | await expect( 61 | page.locator( 'role=combobox[name="Link"i]' ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:58:5
[chromium] › editor/blocks/buttons.spec.js:80:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted: test/e2e/specs/editor/blocks/buttons.spec.js#L89
4) [chromium] › editor/blocks/buttons.spec.js:80:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted Error: Timed out 5000ms waiting for expect(received).toBeFocused() Call log: - expect.toBeFocused with timeout 5000ms - waiting for locator('role=textbox[name="Button text"i]') - waiting for locator('role=textbox[name="Button text"i]') 87 | await expect( 88 | editor.canvas.locator( 'role=textbox[name="Button text"i]' ) > 89 | ).toBeFocused(); | ^ 90 | await pageUtils.pressKeys( 'primary+k' ); 91 | await expect( 92 | page.locator( 'role=combobox[name="Link"i]' ) at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/buttons.spec.js:89:5
🎭 Playwright Run Summary
1 skipped 223 passed (15.4m)
🎭 Playwright Run Summary
1 flaky [webkit] › editor/various/multi-block-selection.spec.js:1182:2 › Multi-block selection › should partially select with shift + click (@WebKit) 2 skipped 219 passed (17.5m)
🎭 Playwright Run Summary
229 passed (18.4m)
🎭 Playwright Run Summary
12 failed [chromium] › editor/blocks/buttons.spec.js:11:2 › Buttons › has focus on button content ──────── [chromium] › editor/blocks/buttons.spec.js:29:2 › Buttons › has focus on button content (slash inserter) [chromium] › editor/blocks/buttons.spec.js:49:2 › Buttons › dismisses link editor when escape is pressed [chromium] › editor/blocks/buttons.spec.js:80:2 › Buttons › moves focus from the link editor back to the button when escape is pressed after the URL has been submitted [chromium] › editor/blocks/buttons.spec.js:112:2 › Buttons › appends http protocol to links added which are missing a protocol [chromium] › editor/blocks/buttons.spec.js:138:2 › Buttons › can jump to the link editor using the keyboard shortcut [chromium] › editor/blocks/buttons.spec.js:165:2 › Buttons › can toggle button link settings ─── [chromium] › editor/blocks/buttons.spec.js:258:2 › Buttons › can resize width ────────────────── [chromium] › editor/blocks/buttons.spec.js:280:2 › Buttons › can apply named colors ──────────── [chromium] › editor/blocks/buttons.spec.js:309:2 › Buttons › can apply custom colors ─────────── [chromium] › editor/blocks/buttons.spec.js:341:2 › Buttons › can apply named gradient background color [chromium] › editor/blocks/buttons.spec.js:370:2 › Buttons › can apply custom gradient background color 11 skipped 202 passed (21.5m)

Artifacts

Produced during runtime
Name Size
failures-artifacts Expired
41.9 MB
flaky-tests-report Expired
8.74 KB