Skip to content

Commit

Permalink
Fix e2e test: can be created and modified using only the keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Jan 23, 2024
1 parent a20eace commit 10858fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/specs/editor/blocks/links.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,13 @@ test.describe( 'Links', () => {
await pageUtils.pressKeys( 'Enter' );

const linkPopover = LinkUtils.getLinkPopover();
await expect( linkPopover ).toBeVisible();
// Close the link control to return the caret to the canvas
await pageUtils.pressKeys( 'Escape' );

// Deselect the link text by moving the caret to the end of the line
// and the link popover should not be displayed.
await pageUtils.pressKeys( 'End' );
await expect( linkPopover ).toBeHidden();

// Move the caret back into the link text and the link popover
// should be displayed.
Expand Down

0 comments on commit 10858fa

Please sign in to comment.