From 9dabda644b0d01df5844c59b33289d4a8b7010f9 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 16 Feb 2024 09:41:46 +0100 Subject: [PATCH] Adjust test more accurately. --- test/e2e/specs/editor/various/list-view.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/various/list-view.spec.js b/test/e2e/specs/editor/various/list-view.spec.js index d3bd2c5efcd7cd..b1069e8d5d4d0c 100644 --- a/test/e2e/specs/editor/various/list-view.spec.js +++ b/test/e2e/specs/editor/various/list-view.spec.js @@ -378,6 +378,7 @@ test.describe( 'List View', () => { // Focus the outline tab and select it. This test ensures the outline // tab receives similar focus events based on the shortcut. await pageUtils.pressKeys( 'shift+Tab' ); + await pageUtils.pressKeys( 'shift+Tab' ); await page.keyboard.press( 'ArrowRight' ); const outlineButton = page.getByRole( 'tab', { name: 'Outline', @@ -387,7 +388,7 @@ test.describe( 'List View', () => { // From here, tab in to the editor so focus can be checked on return to // the outline tab in the sidebar. - await pageUtils.pressKeys( 'Tab', { times: 2 } ); + await pageUtils.pressKeys( 'Tab', { times: 3 } ); // Focus should be placed on the outline tab button since there is // nothing to focus inside the tab itself. await pageUtils.pressKeys( 'access+o' );