Skip to content

Commit

Permalink
Adjust e2e test.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Dec 6, 2024
1 parent 6fe8c22 commit 0b0448c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/specs/editor/various/block-switcher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ test.describe( 'Block Switcher', () => {
await expect( button ).toBeDisabled();
} );

test( 'Should show a message if there are no transforms or styles available', async ( {
test( 'Should be disabled when there are no transforms or styles available', async ( {
editor,
page,
pageUtils,
Expand All @@ -126,11 +126,11 @@ test.describe( 'Block Switcher', () => {
await page.keyboard.type( '- List content' );
await pageUtils.pressKeys( 'alt+F10' );

await page
const button = page
.getByRole( 'toolbar', { name: 'Block tools' } )
.getByRole( 'button', { name: 'List item' } )
.click();
await expect( page.getByText( 'No transforms.' ) ).toBeVisible();
.getByRole( 'button', { name: 'List item' } );
// Verify the block switcher isn't enabled.
await expect( button ).toBeDisabled();
} );

test( 'Should show Columns block only if selected blocks are between limits (1-6)', async ( {
Expand Down

0 comments on commit 0b0448c

Please sign in to comment.