Skip to content

Commit

Permalink
Update is-typing test to check for toBeHidden and toBeVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Dec 7, 2023
1 parent cb1eae3 commit f3b5f4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/specs/editor/various/is-typing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ test.describe( 'isTyping', () => {
);

// Toolbar Popover should not be showing
await expect( blockToolbarPopover ).toHaveCSS( 'opacity', '0' );
await expect( blockToolbarPopover ).toBeHidden();

// Moving the mouse shows the toolbar.
await editor.showBlockToolbar();

// Toolbar Popover is visible.
await expect( blockToolbarPopover ).toHaveCSS( 'opacity', '1' );
await expect( blockToolbarPopover ).toBeVisible();

// Typing again hides the toolbar
await page.keyboard.type( ' and continue' );

// Toolbar Popover is hidden again
await expect( blockToolbarPopover ).toHaveCSS( 'opacity', '0' );
await expect( blockToolbarPopover ).toBeHidden();
} );

test( 'should not close the dropdown when typing in it', async ( {
Expand Down

0 comments on commit f3b5f4e

Please sign in to comment.