Remove the verb Toggle from the Block Inserter button. #116369
Annotations
4 errors and 1 notice
Run the tests:
test/e2e/specs/editor/blocks/image.spec.js#L443
1) [chromium] › editor/blocks/image.spec.js:423:2 › Image › can be replaced by dragging-and-dropping images from the inserter
Error: locator.getAttribute: 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' })
441 | } );
442 | const isClosed =
> 443 | ( await blockInserter.getAttribute( 'aria-pressed' ) ) ===
| ^
444 | 'false';
445 |
446 | if ( isClosed ) {
at openMediaTab (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:443:27)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:491:9
|
Run the tests:
test/e2e/specs/editor/blocks/image.spec.js#L443
1) [chromium] › editor/blocks/image.spec.js:423:2 › Image › can be replaced by dragging-and-dropping images from the inserter
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.getAttribute: 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' })
441 | } );
442 | const isClosed =
> 443 | ( await blockInserter.getAttribute( 'aria-pressed' ) ) ===
| ^
444 | 'false';
445 |
446 | if ( isClosed ) {
at openMediaTab (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:443:27)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:491:9
|
Run the tests:
test/e2e/specs/editor/blocks/image.spec.js#L443
1) [chromium] › editor/blocks/image.spec.js:423:2 › Image › can be replaced by dragging-and-dropping images from the inserter
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: locator.getAttribute: 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' })
441 | } );
442 | const isClosed =
> 443 | ( await blockInserter.getAttribute( 'aria-pressed' ) ) ===
| ^
444 | 'false';
445 |
446 | if ( isClosed ) {
at openMediaTab (/home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:443:27)
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/blocks/image.spec.js:491:9
|
Run the tests
Process completed with exit code 1.
|
Run the tests
1 failed
[chromium] › editor/blocks/image.spec.js:423:2 › Image › can be replaced by dragging-and-dropping images from the inserter
198 passed (10.2m)
|
Loading