Remove the verb Toggle from the Block Inserter button. #116369
Annotations
5 errors and 1 notice
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L406
1) [chromium] › editor/various/inserting-blocks.spec.js:384:2 › Inserting blocks (@Firefox, @WebKit) › should close the inserter when clicking on the toggle button
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Block Inserter' }) resolved to 2 elements:
1) <button id=":r1:" type="button" aria-pressed="true" aria-expanded="true" data-active-item="true" data-toolbar-item="true" aria-label="Block Inserter" class="components-button editor-document-tools__inserter-toggle is-primary is-pressed has-icon">…</button> aka getByLabel('Block Inserter', { exact: true })
2) <button type="button" aria-label="Close block inserter" class="components-button block-editor-tabbed-sidebar__close-button is-small has-icon">…</button> aka getByLabel('Close block inserter')
Call log:
- waiting for getByRole('button', { name: 'Block Inserter' })
404 | .toMatchObject( [ { name: 'core/buttons' } ] );
405 |
> 406 | await inserterButton.click();
| ^
407 |
408 | await expect( blockLibrary ).toBeHidden();
409 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:406:24
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L406
1) [chromium] › editor/various/inserting-blocks.spec.js:384:2 › Inserting blocks (@Firefox, @WebKit) › should close the inserter when clicking on the toggle button
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Block Inserter' }) resolved to 2 elements:
1) <button id=":r1:" type="button" aria-pressed="true" aria-expanded="true" data-active-item="true" data-toolbar-item="true" aria-label="Block Inserter" class="components-button editor-document-tools__inserter-toggle is-primary is-pressed has-icon">…</button> aka getByLabel('Block Inserter', { exact: true })
2) <button type="button" aria-label="Close block inserter" class="components-button block-editor-tabbed-sidebar__close-button is-small has-icon">…</button> aka getByLabel('Close block inserter')
Call log:
- waiting for getByRole('button', { name: 'Block Inserter' })
404 | .toMatchObject( [ { name: 'core/buttons' } ] );
405 |
> 406 | await inserterButton.click();
| ^
407 |
408 | await expect( blockLibrary ).toBeHidden();
409 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:406:24
|
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L406
1) [chromium] › editor/various/inserting-blocks.spec.js:384:2 › Inserting blocks (@Firefox, @WebKit) › should close the inserter when clicking on the toggle button
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.click: Error: strict mode violation: getByRole('button', { name: 'Block Inserter' }) resolved to 2 elements:
1) <button id=":r1:" type="button" aria-pressed="true" aria-expanded="true" data-active-item="true" data-toolbar-item="true" aria-label="Block Inserter" class="components-button editor-document-tools__inserter-toggle is-primary is-pressed has-icon">…</button> aka getByLabel('Block Inserter', { exact: true })
2) <button type="button" aria-label="Close block inserter" class="components-button block-editor-tabbed-sidebar__close-button is-small has-icon">…</button> aka getByLabel('Close block inserter')
Call log:
- waiting for getByRole('button', { name: 'Block Inserter' })
404 | .toMatchObject( [ { name: 'core/buttons' } ] );
405 |
> 406 | await inserterButton.click();
| ^
407 |
408 | await expect( blockLibrary ).toBeHidden();
409 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/inserting-blocks.spec.js:406:24
|
Run the tests:
test/e2e/specs/editor/various/pattern-overrides.spec.js#L158
2) [chromium] › editor/various/pattern-overrides.spec.js:30:2 › Pattern Overrides › Create a pattern with overrides › Create a post and insert the pattern with overrides
Error: Timed out 5000ms waiting for expect(locator).toHaveAttribute(expected)
Locator: frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Pattern' }).first().getByRole('document', { name: 'Block: Paragraph' }).last()
Expected string: "true"
Received string: ""
Call log:
- expect.toHaveAttribute with timeout 5000ms
- waiting for frameLocator('[name="editor-canvas"]').getByRole('document', { name: 'Block: Pattern' }).first().getByRole('document', { name: 'Block: Paragraph' }).last()
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-764a9cb7-8ddd-4225-a0f9-c989623ee46e" data-block="764a9cb7-8ddd-4225-a0f9-c989623ee46e" class="block-editor-rich-text__editable block-editor-block-list__block wp-block is-editing-disabled wp-block-paragraph rich-text">This one can't</p>
- unexpected value "null"
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-764a9cb7-8ddd-4225-a0f9-c989623ee46e" data-block="764a9cb7-8ddd-4225-a0f9-c989623ee46e" class="block-editor-rich-text__editable block-editor-block-list__block wp-block is-editing-disabled wp-block-paragraph rich-text">This one can't</p>
- unexpected value "null"
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-764a9cb7-8ddd-4225-a0f9-c989623ee46e" data-block="764a9cb7-8ddd-4225-a0f9-c989623ee46e" class="block-editor-rich-text__editable block-editor-block-list__block wp-block is-editing-disabled wp-block-paragraph rich-text">This one can't</p>
- unexpected value "null"
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-764a9cb7-8ddd-4225-a0f9-c989623ee46e" data-block="764a9cb7-8ddd-4225-a0f9-c989623ee46e" class="block-editor-rich-text__editable block-editor-block-list__block wp-block is-editing-disabled wp-block-paragraph rich-text">This one can't</p>
- unexpected value "null"
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-764a9cb7-8ddd-4225-a0f9-c989623ee46e" data-block="764a9cb7-8ddd-4225-a0f9-c989623ee46e" class="block-editor-rich-text__editable block-editor-block-list__block wp-block is-editing-disabled wp-block-paragraph rich-text">This one can't</p>
- unexpected value "null"
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-attribute-key="content" id="block-764a9cb7-8ddd-4225-a0f9-c989623ee46e" data-block="764a9cb7-8ddd-4225-a0f9-c989623ee46e" class="block-editor-rich-text__editable block-editor-block-list__block wp-block is-editing-disabled wp-block-paragraph rich-text">This one can't</p>
- unexpected value "null"
- locator resolved to <p tabindex="-1" role="document" data-empty="false" aria-multiline="true" data-title="Paragraph" contenteditable="true" data-type="core/paragraph" aria-label="Block: Paragraph" data-wp-block-a
|
Run the tests
Process completed with exit code 1.
|
Run the tests
1 failed
[chromium] › editor/various/inserting-blocks.spec.js:384:2 › Inserting blocks (@Firefox, @WebKit) › should close the inserter when clicking on the toggle button
1 flaky
[chromium] › editor/various/pattern-overrides.spec.js:30:2 › Pattern Overrides › Create a pattern with overrides
1 skipped
185 passed (10.1m)
|
Loading