Show Template: Refactor rendering mode management in editor provider and store to persist it #122748
Annotations
10 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/site-editor/block-style-variations.spec.js#L226
1) [chromium] › site-editor/block-style-variations.spec.js:98:2 › Block Style Variations › update block style variations in global styles and check revisions match styles
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('[name="revisions"]').contentFrame().getByRole('document', { name: 'Block: Content' }).locator('[data-type="core/group"]').first()
Expected string: "dotted"
Received: <element(s) not found>
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('[name="revisions"]').contentFrame().getByRole('document', { name: 'Block: Content' }).locator('[data-type="core/group"]').first()
224 |
225 | // Check parent styles have current revision.
> 226 | await expect( revisionFirstGroup ).toHaveCSS(
| ^
227 | 'border-style',
228 | 'dotted'
229 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/block-style-variations.spec.js:226:38
|
Run the tests:
test/e2e/specs/site-editor/block-style-variations.spec.js#L226
1) [chromium] › site-editor/block-style-variations.spec.js:98:2 › Block Style Variations › update block style variations in global styles and check revisions match styles
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('[name="revisions"]').contentFrame().getByRole('document', { name: 'Block: Content' }).locator('[data-type="core/group"]').first()
Expected string: "dotted"
Received: <element(s) not found>
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('[name="revisions"]').contentFrame().getByRole('document', { name: 'Block: Content' }).locator('[data-type="core/group"]').first()
224 |
225 | // Check parent styles have current revision.
> 226 | await expect( revisionFirstGroup ).toHaveCSS(
| ^
227 | 'border-style',
228 | 'dotted'
229 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/block-style-variations.spec.js:226:38
|
Run the tests:
test/e2e/specs/site-editor/block-style-variations.spec.js#L226
1) [chromium] › site-editor/block-style-variations.spec.js:98:2 › Block Style Variations › update block style variations in global styles and check revisions match styles
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: locator('[name="revisions"]').contentFrame().getByRole('document', { name: 'Block: Content' }).locator('[data-type="core/group"]').first()
Expected string: "dotted"
Received: <element(s) not found>
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for locator('[name="revisions"]').contentFrame().getByRole('document', { name: 'Block: Content' }).locator('[data-type="core/group"]').first()
224 |
225 | // Check parent styles have current revision.
> 226 | await expect( revisionFirstGroup ).toHaveCSS(
| ^
227 | 'border-style',
228 | 'dotted'
229 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/block-style-variations.spec.js:226:38
|
Run the tests:
test/e2e/specs/site-editor/command-center.spec.js#L37
2) [chromium] › site-editor/command-center.spec.js:20:2 › Site editor command palette › Open the command palette and navigate to the page create page
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('[name="editor-canvas"]').contentFrame().getByLabel('Block: Title').locator('[data-rich-text-placeholder="No title"]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().getByLabel('Block: Title').locator('[data-rich-text-placeholder="No title"]')
35 | .getByLabel( 'Block: Title' )
36 | .locator( '[data-rich-text-placeholder="No title"]' )
> 37 | ).toBeVisible();
| ^
38 | } );
39 |
40 | test( 'Open the command palette and navigate to a template', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/command-center.spec.js:37:5
|
Run the tests:
test/e2e/specs/site-editor/command-center.spec.js#L37
2) [chromium] › site-editor/command-center.spec.js:20:2 › Site editor command palette › Open the command palette and navigate to the page create page
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('[name="editor-canvas"]').contentFrame().getByLabel('Block: Title').locator('[data-rich-text-placeholder="No title"]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().getByLabel('Block: Title').locator('[data-rich-text-placeholder="No title"]')
35 | .getByLabel( 'Block: Title' )
36 | .locator( '[data-rich-text-placeholder="No title"]' )
> 37 | ).toBeVisible();
| ^
38 | } );
39 |
40 | test( 'Open the command palette and navigate to a template', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/command-center.spec.js:37:5
|
Run the tests:
test/e2e/specs/site-editor/command-center.spec.js#L37
2) [chromium] › site-editor/command-center.spec.js:20:2 › Site editor command palette › Open the command palette and navigate to the page create page
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
Locator: locator('[name="editor-canvas"]').contentFrame().getByLabel('Block: Title').locator('[data-rich-text-placeholder="No title"]')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.toBeVisible with timeout 5000ms
- waiting for locator('[name="editor-canvas"]').contentFrame().getByLabel('Block: Title').locator('[data-rich-text-placeholder="No title"]')
35 | .getByLabel( 'Block: Title' )
36 | .locator( '[data-rich-text-placeholder="No title"]' )
> 37 | ).toBeVisible();
| ^
38 | } );
39 |
40 | test( 'Open the command palette and navigate to a template', async ( {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/command-center.spec.js:37:5
|
Run the tests:
test/e2e/specs/site-editor/preload.spec.js#L46
3) [chromium] › site-editor/preload.spec.js:16:2 › Preload › Should make no requests before the iframe is loaded
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "/wp/v2/settings",
"/wp/v2/users/me",
+ "/wp/v2/settings",
]
44 |
45 | // To do: these should all be removed or preloaded.
> 46 | expect( requests ).toEqual( [
| ^
47 | // There are two separate settings OPTIONS requests. We should fix
48 | // so the one for canUser and getEntityRecord are reused.
49 | '/wp/v2/settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/preload.spec.js:46:22
|
Run the tests:
test/e2e/specs/site-editor/preload.spec.js#L46
3) [chromium] › site-editor/preload.spec.js:16:2 › Preload › Should make no requests before the iframe is loaded
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "/wp/v2/settings",
"/wp/v2/users/me",
+ "/wp/v2/settings",
]
44 |
45 | // To do: these should all be removed or preloaded.
> 46 | expect( requests ).toEqual( [
| ^
47 | // There are two separate settings OPTIONS requests. We should fix
48 | // so the one for canUser and getEntityRecord are reused.
49 | '/wp/v2/settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/preload.spec.js:46:22
|
Run the tests:
test/e2e/specs/site-editor/preload.spec.js#L46
3) [chromium] › site-editor/preload.spec.js:16:2 › Preload › Should make no requests before the iframe is loaded
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
- Expected - 1
+ Received + 1
Array [
- "/wp/v2/settings",
"/wp/v2/users/me",
+ "/wp/v2/settings",
]
44 |
45 | // To do: these should all be removed or preloaded.
> 46 | expect( requests ).toEqual( [
| ^
47 | // There are two separate settings OPTIONS requests. We should fix
48 | // so the one for canUser and getEntityRecord are reused.
49 | '/wp/v2/settings',
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/preload.spec.js:46:22
|
Run the tests:
test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js#L113
4) [chromium] › site-editor/dataviews-list-layout-keyboard.spec.js:96:2 › Dataviews List Layout › Navigates the items list via UP/DOWN arrow keys
Error: Timed out 5000ms waiting for expect(locator).toBeFocused()
Locator: getByLabel('Sample Page')
Expected: focused
Received: inactive
Call log:
- expect.toBeFocused with timeout 5000ms
- waiting for getByLabel('Sample Page')
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
- locator resolved to <button tabindex="-1" type="button" aria-pressed="false" id="view-list-0-189-item-wrapper" class="dataviews-view-list__item" aria-labelledby="view-list-0-189-label" aria-describedby="view-list-0-189-description"></button>
- unexpected value "not focused"
111 | // Use arrow up/down to move through the list.
112 | await page.keyboard.press( 'ArrowDown' );
> 113 | await expect( page.getByLabel( 'Sample Page' ) ).toBeFocused();
| ^
114 |
115 | await page.keyboard.press( 'ArrowUp' );
116 | await expect( page.getByLabel( 'Privacy Policy' ) ).toBeFocused();
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/dataviews-list-layout-keyboard.spec.js:113:52
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
3 failed
[chromium] › site-editor/block-style-variations.spec.js:98:2 › Block Style Variations › update block style variations in global styles and check revisions match styles
[chromium] › site-editor/command-center.spec.js:20:2 › Site editor command palette › Open the command palette and navigate to the page create page
[chromium] › site-editor/preload.spec.js:16:2 › Preload › Should make no requests before the iframe is loaded
1 flaky
[chromium] › site-editor/dataviews-list-layout-keyboard.spec.js:96:2 › Dataviews List Layout › Navigates the items list via UP/DOWN arrow keys
1 skipped
196 passed (11.0m)
|
Loading