Skip to content

Commit

Permalink
Adjust test more accurately.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 16, 2024
1 parent a09349b commit 9dabda6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/specs/editor/various/list-view.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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' );
Expand Down

0 comments on commit 9dabda6

Please sign in to comment.