From f3b5f4ed98eb004371d25c7669c8d7e9ff880b7e Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Wed, 6 Dec 2023 22:39:21 -0600 Subject: [PATCH] Update is-typing test to check for toBeHidden and toBeVisible --- test/e2e/specs/editor/various/is-typing.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/specs/editor/various/is-typing.spec.js b/test/e2e/specs/editor/various/is-typing.spec.js index 583f1ec97c725..8063f688409c4 100644 --- a/test/e2e/specs/editor/various/is-typing.spec.js +++ b/test/e2e/specs/editor/various/is-typing.spec.js @@ -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 ( {