Skip to content

Commit

Permalink
Fix final e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Feb 6, 2023
1 parent 20a277d commit f2dd331
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/e2e-tests/specs/editor/various/links.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,12 @@ describe( 'Links', () => {
// Type a URL.
await page.keyboard.type( 'https://wordpress.org/gutenberg' );

const [ settingsToggle ] = await page.$x(
'//button[contains(@aria-label, "Toggle link settings")]'
);
await settingsToggle.click();
// Open settings.
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Space' );

// Navigate to and toggle the "Open in new tab" checkbox.
await pressKeyTimes( 'Tab', 2 );
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Space' );

// Toggle should still have focus and be checked.
Expand Down

0 comments on commit f2dd331

Please sign in to comment.