RichText: Introduce new attributeKey
prop
#121966
Annotations
10 errors, 1 warning, and 1 notice
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L185
1) [chromium] › editor/various/pattern-overrides.spec.js:30:2 › Pattern Overrides › Create a pattern with overrides
Error: expect(received).toMatchObject(expected)
- Expected - 10
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": Object {
- "Editable Paragraph": Object {
- "content": "I would word it this way",
- },
- },
+ "content": Array [],
"ref": 164,
},
"name": "core/block",
},
Object {
"attributes": Object {
- "content": Object {
- "Editable Paragraph": Object {
- "content": "This one is different",
- },
- },
+ "content": Array [],
"ref": 164,
},
"name": "core/block",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
183 | await page.keyboard.type( 'This one is different' );
184 |
> 185 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
186 | {
187 | name: 'core/block',
188 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:185:4
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:138:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L185
1) [chromium] › editor/various/pattern-overrides.spec.js:30:2 › Pattern Overrides › Create a pattern with overrides
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 10
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": Object {
- "Editable Paragraph": Object {
- "content": "I would word it this way",
- },
- },
+ "content": Array [],
"ref": 167,
},
"name": "core/block",
},
Object {
"attributes": Object {
- "content": Object {
- "Editable Paragraph": Object {
- "content": "This one is different",
- },
- },
+ "content": Array [],
"ref": 167,
},
"name": "core/block",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
183 | await page.keyboard.type( 'This one is different' );
184 |
> 185 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
186 | {
187 | name: 'core/block',
188 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:185:4
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:138:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L185
1) [chromium] › editor/various/pattern-overrides.spec.js:30:2 › Pattern Overrides › Create a pattern with overrides
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 10
+ Received + 2
Array [
Object {
"attributes": Object {
- "content": Object {
- "Editable Paragraph": Object {
- "content": "I would word it this way",
- },
- },
+ "content": Array [],
"ref": 170,
},
"name": "core/block",
},
Object {
"attributes": Object {
- "content": Object {
- "Editable Paragraph": Object {
- "content": "This one is different",
- },
- },
+ "content": Array [],
"ref": 170,
},
"name": "core/block",
},
]
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
183 | await page.keyboard.type( 'This one is different' );
184 |
> 185 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
186 | {
187 | name: 'core/block',
188 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:185:4
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:138:3
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L535
2) [chromium] › editor/various/pattern-overrides.spec.js:496:3 › Pattern Overrides › block editing modes › disables editing of nested patterns
Error: expect(received).toMatchObject(expected)
- Expected - 5
+ Received + 1
@@ -1,13 +1,9 @@
Array [
Object {
"attributes": Object {
- "content": Object {
- "Editable heading": Object {
- "content": "Outer heading (edited)",
- },
- },
+ "content": Array [],
"ref": 175,
},
"innerBlocks": Array [],
"name": "core/block",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
533 |
534 | // Check the pattern has the correct attributes.
> 535 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
536 | {
537 | name: 'core/block',
538 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:535:4
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L535
2) [chromium] › editor/various/pattern-overrides.spec.js:496:3 › Pattern Overrides › block editing modes › disables editing of nested patterns
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 5
+ Received + 1
@@ -1,13 +1,9 @@
Array [
Object {
"attributes": Object {
- "content": Object {
- "Editable heading": Object {
- "content": "Outer heading (edited)",
- },
- },
+ "content": Array [],
"ref": 179,
},
"innerBlocks": Array [],
"name": "core/block",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
533 |
534 | // Check the pattern has the correct attributes.
> 535 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
536 | {
537 | name: 'core/block',
538 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:535:4
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L535
2) [chromium] › editor/various/pattern-overrides.spec.js:496:3 › Pattern Overrides › block editing modes › disables editing of nested patterns
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toMatchObject(expected)
- Expected - 5
+ Received + 1
@@ -1,13 +1,9 @@
Array [
Object {
"attributes": Object {
- "content": Object {
- "Editable heading": Object {
- "content": "Outer heading (edited)",
- },
- },
+ "content": Array [],
"ref": 183,
},
"innerBlocks": Array [],
"name": "core/block",
},
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
533 |
534 | // Check the pattern has the correct attributes.
> 535 | await expect.poll( editor.getBlocks ).toMatchObject( [
| ^
536 | {
537 | name: 'core/block',
538 | attributes: {
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:535:4
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L857
3) [chromium] › editor/various/pattern-overrides.spec.js:799:2 › Pattern Overrides › resets overrides after clicking the reset button
Error: The heading block should have the reset button enabled
Timed out 5000ms waiting for expect(locator).toBeEnabled()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
Expected: enabled
Received: disabled
Call log:
- The heading block should have the reset button enabled with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
855 | resetButton,
856 | 'The heading block should have the reset button enabled'
> 857 | ).toBeEnabled();
| ^
858 |
859 | // Assert the unmodified paragraph block (no overrides).
860 | await editor.selectBlocks( paragraphBlock );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:857:5
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L857
3) [chromium] › editor/various/pattern-overrides.spec.js:799:2 › Pattern Overrides › resets overrides after clicking the reset button
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: The heading block should have the reset button enabled
Timed out 5000ms waiting for expect(locator).toBeEnabled()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
Expected: enabled
Received: disabled
Call log:
- The heading block should have the reset button enabled with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
855 | resetButton,
856 | 'The heading block should have the reset button enabled'
> 857 | ).toBeEnabled();
| ^
858 |
859 | // Assert the unmodified paragraph block (no overrides).
860 | await editor.selectBlocks( paragraphBlock );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:857:5
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L857
3) [chromium] › editor/various/pattern-overrides.spec.js:799:2 › Pattern Overrides › resets overrides after clicking the reset button
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: The heading block should have the reset button enabled
Timed out 5000ms waiting for expect(locator).toBeEnabled()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
Expected: enabled
Received: disabled
Call log:
- The heading block should have the reset button enabled with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1p:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
855 | resetButton,
856 | 'The heading block should have the reset button enabled'
> 857 | ).toBeEnabled();
| ^
858 |
859 | // Assert the unmodified paragraph block (no overrides).
860 | await editor.selectBlocks( paragraphBlock );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:857:5
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L943
4) [chromium] › editor/various/pattern-overrides.spec.js:892:2 › Pattern Overrides › resets overrides immediately should not break undo/redo
Error: Timed out 5000ms waiting for expect(locator).toBeEnabled()
Locator: getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
Expected: enabled
Received: disabled
Call log:
- expect.toBeEnabled with timeout 5000ms
- waiting for getByRole('toolbar', { name: 'Block tools' }).getByRole('button', { name: 'Reset' })
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
- locator resolved to <button id=":r1h:" type="button" tabindex="-1" aria-disabled="true" data-toolbar-item="true" class="components-button components-toolbar-button is-compact">Reset</button>
- unexpected value "disabled"
941 | await editor.selectBlocks( paragraphBlock );
942 | await editor.showBlockToolbar();
> 943 | await expect( resetButton ).toBeEnabled();
| ^
944 | await resetButton.click();
945 | await expect( paragraphBlock ).toHaveText( 'Paragraph' );
946 |
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/pattern-overrides.spec.js:943:31
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run the tests
5 failed
[chromium] › editor/various/pattern-overrides.spec.js:30:2 › Pattern Overrides › Create a pattern with overrides
[chromium] › editor/various/pattern-overrides.spec.js:496:3 › Pattern Overrides › block editing modes › disables editing of nested patterns
[chromium] › editor/various/pattern-overrides.spec.js:799:2 › Pattern Overrides › resets overrides after clicking the reset button
[chromium] › editor/various/pattern-overrides.spec.js:892:2 › Pattern Overrides › resets overrides immediately should not break undo/redo
[chromium] › editor/various/pattern-overrides.spec.js:1202:2 › Pattern Overrides › blocks with the same name should be synced
1 skipped
192 passed (11.8m)
|
Loading