Skip to content

Commit

Permalink
Make test more robust by checking move button state before moving block
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Feb 2, 2024
1 parent e0e906d commit dcd182b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/e2e/specs/editor/various/navigable-toolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,12 @@ test.describe( 'Block Toolbar', () => {
exact: true,
} );

// Make sure it's in an acvite state for now
await expect( blockToolbarMoveUpButton ).not.toHaveAttribute(
'aria-disabled',
'true'
);

await expect( blockToolbarMoveUpButton ).toBeFocused();
await pageUtils.pressKeys( 'Enter' );
await expect( blockToolbarMoveUpButton ).toBeFocused();
Expand Down

0 comments on commit dcd182b

Please sign in to comment.