Remove the verb Toggle from the Block Inserter button. #116369
Annotations
4 errors and 1 notice
Run the tests:
test/e2e/specs/editor/various/inserting-blocks.spec.js#L406
1) [webkit] › 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) [webkit] › 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) [webkit] › 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
Process completed with exit code 1.
|
|
Loading