diff --git a/packages/e2e-tests/specs/editor/various/links.test.js b/packages/e2e-tests/specs/editor/various/links.test.js index b9e5612159d612..33f20385f7b231 100644 --- a/packages/e2e-tests/specs/editor/various/links.test.js +++ b/packages/e2e-tests/specs/editor/various/links.test.js @@ -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.