Remove the verb Toggle from the Block Inserter button. #116369
Annotations
4 errors and 1 notice
Run the tests:
test/e2e/specs/site-editor/site-editor-inserter.spec.js#L62
1) [chromium] › site-editor/site-editor-inserter.spec.js:41:2 › Site Editor Inserter › 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=":r4:" 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' })
60 | .toMatchObject( [ ...beforeBlocks, { name: 'core/buttons' } ] );
61 |
> 62 | await inserterButton.click();
| ^
63 |
64 | await expect( blockLibrary ).toBeHidden();
65 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-inserter.spec.js:62:24
|
Run the tests:
test/e2e/specs/site-editor/site-editor-inserter.spec.js#L62
1) [chromium] › site-editor/site-editor-inserter.spec.js:41:2 › Site Editor Inserter › 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=":r4:" 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' })
60 | .toMatchObject( [ ...beforeBlocks, { name: 'core/buttons' } ] );
61 |
> 62 | await inserterButton.click();
| ^
63 |
64 | await expect( blockLibrary ).toBeHidden();
65 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-inserter.spec.js:62:24
|
Run the tests:
test/e2e/specs/site-editor/site-editor-inserter.spec.js#L62
1) [chromium] › site-editor/site-editor-inserter.spec.js:41:2 › Site Editor Inserter › 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=":r4:" 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' })
60 | .toMatchObject( [ ...beforeBlocks, { name: 'core/buttons' } ] );
61 |
> 62 | await inserterButton.click();
| ^
63 |
64 | await expect( blockLibrary ).toBeHidden();
65 | } );
at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/site-editor/site-editor-inserter.spec.js:62:24
|
Run the tests
Process completed with exit code 1.
|
Run the tests
1 failed
[chromium] › site-editor/site-editor-inserter.spec.js:41:2 › Site Editor Inserter › should close the inserter when clicking on the toggle button
3 skipped
192 passed (6.5m)
|
Loading