Use allow-list for mobile editor settings endpoint #88812
Annotations
10 errors and 1 notice
Run the tests:
test/e2e/specs/editor/plugins/custom-post-types.spec.js#L80
1) [chromium] › editor/plugins/custom-post-types.spec.js:69:2 › Test Custom Post Types › should create a cpt with a legacy block in its template without WSOD
Error: expect(received).toMatchObject(expected)
- Expected - 6
+ Received + 2
Array [
Object {
"attributes": Object {
- "providerNameSlug": "wordpress-tv",
- },
- "name": "core/embed",
- },
- Object {
- "attributes": Object {
"content": "Hello there",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
78 | await page.keyboard.type( 'Hello there' );
79 |
> 80 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
81 | {
82 | name: 'core/embed',
83 | attributes: { providerNameSlug: 'wordpress-tv' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/custom-post-types.spec.js:80:41
|
Run the tests:
test/e2e/specs/editor/plugins/custom-post-types.spec.js#L80
1) [chromium] › editor/plugins/custom-post-types.spec.js:69:2 › Test Custom Post Types › should create a cpt with a legacy block in its template without WSOD
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 6
+ Received + 2
Array [
Object {
"attributes": Object {
- "providerNameSlug": "wordpress-tv",
- },
- "name": "core/embed",
- },
- Object {
- "attributes": Object {
"content": "Hello there",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
78 | await page.keyboard.type( 'Hello there' );
79 |
> 80 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
81 | {
82 | name: 'core/embed',
83 | attributes: { providerNameSlug: 'wordpress-tv' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/custom-post-types.spec.js:80:41
|
Run the tests:
test/e2e/specs/editor/plugins/custom-post-types.spec.js#L80
1) [chromium] › editor/plugins/custom-post-types.spec.js:69:2 › Test Custom Post Types › should create a cpt with a legacy block in its template without WSOD
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 6
+ Received + 2
Array [
Object {
"attributes": Object {
- "providerNameSlug": "wordpress-tv",
- },
- "name": "core/embed",
- },
- Object {
- "attributes": Object {
"content": "Hello there",
+ "dropCap": false,
},
+ "innerBlocks": Array [],
"name": "core/paragraph",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
78 | await page.keyboard.type( 'Hello there' );
79 |
> 80 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
81 | {
82 | name: 'core/embed',
83 | attributes: { providerNameSlug: 'wordpress-tv' },
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/custom-post-types.spec.js:80:41
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js#L32
2) [chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:23:2 › iframed block editor settings styles › should load styles added through block editor settings
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('button', { name: 'Add default block' })
Expected string: "rgb(255, 0, 0)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('button', { name: 'Add default block' })
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
30 |
31 | // Expect a red border (added in PHP).
> 32 | await expect( defaultBlock ).toHaveCSS(
| ^
33 | 'border-color',
34 | 'rgb(255, 0, 0)'
35 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js:32:32
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js#L32
2) [chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:23:2 › iframed block editor settings styles › should load styles added through block editor settings
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('button', { name: 'Add default block' })
Expected string: "rgb(255, 0, 0)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('button', { name: 'Add default block' })
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
30 |
31 | // Expect a red border (added in PHP).
> 32 | await expect( defaultBlock ).toHaveCSS(
| ^
33 | 'border-color',
34 | 'rgb(255, 0, 0)'
35 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js:32:32
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js#L32
2) [chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:23:2 › iframed block editor settings styles › should load styles added through block editor settings
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('button', { name: 'Add default block' })
Expected string: "rgb(255, 0, 0)"
Received string: "rgb(0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('button', { name: 'Add default block' })
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
- locator resolved to <p tabindex="0" role="button" aria-label="Add defau…>Type / to choose a block</p>
- unexpected value "rgb(0, 0, 0)"
30 |
31 | // Expect a red border (added in PHP).
> 32 | await expect( defaultBlock ).toHaveCSS(
| ^
33 | 'border-color',
34 | 'rgb(255, 0, 0)'
35 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js:32:32
|
Run the tests:
eval at evaluate (:208:30)#L8
3) [chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:57:2 › iframed block editor settings styles › should load theme styles added through block editor settings
Error: page.evaluate: TypeError: settings.styles is not iterable
at eval (eval at evaluate (:208:30), <anonymous>:8:30)
at UtilityScript.evaluate (<anonymous>:210:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/gutenberg/gutenberg/eval at evaluate (:208:30), <anonymous>:8:30)
at UtilityScript.evaluate (/home/runner/work/gutenberg/gutenberg/<anonymous>:210:17)
at UtilityScript.<anonymous> (/home/runner/work/gutenberg/gutenberg/<anonymous>:1:44)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js:65:14
|
Run the tests:
eval at evaluate (:208:30)#L8
3) [chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:57:2 › iframed block editor settings styles › should load theme styles added through block editor settings
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: TypeError: settings.styles is not iterable
at eval (eval at evaluate (:208:30), <anonymous>:8:30)
at UtilityScript.evaluate (<anonymous>:210:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/gutenberg/gutenberg/eval at evaluate (:208:30), <anonymous>:8:30)
at UtilityScript.evaluate (/home/runner/work/gutenberg/gutenberg/<anonymous>:210:17)
at UtilityScript.<anonymous> (/home/runner/work/gutenberg/gutenberg/<anonymous>:1:44)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js:65:14
|
Run the tests:
eval at evaluate (:208:30)#L8
3) [chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:57:2 › iframed block editor settings styles › should load theme styles added through block editor settings
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: page.evaluate: TypeError: settings.styles is not iterable
at eval (eval at evaluate (:208:30), <anonymous>:8:30)
at UtilityScript.evaluate (<anonymous>:210:17)
at UtilityScript.<anonymous> (<anonymous>:1:44)
at eval (/home/runner/work/gutenberg/gutenberg/eval at evaluate (:208:30), <anonymous>:8:30)
at UtilityScript.evaluate (/home/runner/work/gutenberg/gutenberg/<anonymous>:210:17)
at UtilityScript.<anonymous> (/home/runner/work/gutenberg/gutenberg/<anonymous>:1:44)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-enqueue-block-editor-settings.spec.js:65:14
|
Run the tests:
test/e2e/specs/editor/plugins/iframed-equeue-block-assets.spec.js#L34
4) [chromium] › editor/plugins/iframed-equeue-block-assets.spec.js:29:2 › iframed enqueue block assets › should load styles added through enqueue_block_assets
Error: Timed out 5000ms waiting for expect(locator).toHaveCSS(expected)
Locator: frameLocator('[name="editor-canvas"]').locator('body')
Expected string: "rgb(33, 117, 155)"
Received string: "rgba(0, 0, 0, 0)"
Call log:
- expect.toHaveCSS with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').locator('body')
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
- locator resolved to <body tabindex="0" contenteditable="false" class="bloc…>…</body>
- unexpected value "rgba(0, 0, 0, 0)"
32 | const canvasBody = editor.canvas.locator( 'body' );
33 |
> 34 | await expect( canvasBody ).toHaveCSS(
| ^
35 | 'background-color',
36 | 'rgb(33, 117, 155)'
37 | );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/plugins/iframed-equeue-block-assets.spec.js:34:30
|
Run the tests
32 failed
[chromium] › editor/plugins/custom-post-types.spec.js:69:2 › Test Custom Post Types › should create a cpt with a legacy block in its template without WSOD
[chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:23:2 › iframed block editor settings styles › should load styles added through block editor settings
[chromium] › editor/plugins/iframed-enqueue-block-editor-settings.spec.js:57:2 › iframed block editor settings styles › should load theme styles added through block editor settings
[chromium] › editor/plugins/iframed-equeue-block-assets.spec.js:29:2 › iframed enqueue block assets › should load styles added through enqueue_block_assets
[chromium] › editor/plugins/iframed-masonry-block.spec.js:23:2 › iframed masonry block › should load script and dependencies in iframe
[chromium] › editor/plugins/inner-blocks-template-sync.spec.js:104:2 › InnerBlocks Template Sync › Synchronizes blocks if lock 'all' is set and the template prop is changed
[chromium] › editor/plugins/post-type-locking.spec.js:24:3 › Post-type locking › template_lock all › should disable the inserter
[chromium] › editor/plugins/post-type-locking.spec.js:32:3 › Post-type locking › template_lock all › should not allow blocks to be removed
[chromium] › editor/plugins/post-type-locking.spec.js:52:3 › Post-type locking › template_lock all › should not allow blocks to be moved
[chromium] › editor/plugins/post-type-locking.spec.js:70:3 › Post-type locking › template_lock all › should not error when deleting the contents of a paragraph
[chromium] › editor/plugins/post-type-locking.spec.js:89:3 › Post-type locking › template_lock all › should insert line breaks when using enter and shift-enter
[chromium] › editor/plugins/post-type-locking.spec.js:126:3 › Post-type locking › template_lock all › should show invalid template notice if the blocks do not match the templte
[chromium] › editor/plugins/post-type-locking.spec.js:151:3 › Post-type locking › template_lock all › should not allow blocks to be inserted in inner blocks
[chromium] › editor/plugins/post-type-locking.spec.js:182:3 › Post-type locking › template_lock insert › should disable the inserter
[chromium] › editor/plugins/post-type-locking.spec.js:190:3 › Post-type locking › template_lock insert › should not allow blocks to be removed
[chromium] › editor/plugins/post-type-locking.spec.js:210:3 › Post-type locking › template_lock insert › should allow blocks to be moved
[chromium] › editor/plugins/post-type-locking.spec.js:267:3 › Post-type locking › template_lock false › should allow blocks to be removed
[chromium] › editor/plugins/post-type-locking.spec.js:289:3 › Post-type locking › template_lock false › should allow blocks to be moved
[chromium] › editor/plugins/post-type-locking.spec.js:324:3 › Post-type locking › template_lock all unlocked group › should allow blocks to be removed
[chromium] › editor/plugins/post-type-locking.spec.js:345:3 › Post-type locking › template_lock all unlocked group › should allow blocks to be moved
[chromium] › editor/plugins/post-type-locking.spec.js:379:3 › Post-type locking › template_lock all locked group › should not allow blocks to be removed
[chromium] › editor/plugins/post-type-locking.spec.js:399:3 › Post-type locking › template_lock all locked group › should not allow blocks to be moved
[chromium] › editor/plugins/post-type-locking.spec.js:423:3 › Post-type locking › template_lock all inherited group › should not allow blocks to be removed
[chromium] › editor/plugins/post-type-locking.spec.js:443:3 › Post-type locking › template_lock all inherited group › should not allow blocks to be moved
[chromium] › editor/plugins/post-type-templates.spec.js:24:3 › Post type templates › Using a CPT with a predefined template › Should add a custom post types with a predefined template
[chromium] › editor/plugins/post-type-templates.spec.js:30:3 › Post type templates › Using a CPT with a predefined template › Should res
|
The logs for this run have expired and are no longer available.
Loading