Skip to content

Commit

Permalink
Refine test.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Jan 27, 2023
1 parent ee6582a commit 5d57d28
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/e2e/specs/editor/various/a11y.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,13 @@ test.describe( 'a11y (@firefox, @webkit)', () => {
await page.keyboard.press( 'Shift+Tab' );
await expect( preferencesModalContent ).toBeFocused();

// Make the Blocks tab panel content shorter by searching for a block.
// It's now not scrollable. Check it's not focusable.
// Make the Blocks tab panel content shorter by searching for a block
// that doesn't exist. The content only shows 'No blocks found' and it's
// not scrollable any longer. Check it's not focusable.
await clickAndFocusTab( blocksTab );
await page.type(
'role=searchbox[name="Search for a block"i]',
'cover'
'qwerty'
);
await clickAndFocusTab( blocksTab );
await page.keyboard.press( 'Shift+Tab' );
Expand Down

0 comments on commit 5d57d28

Please sign in to comment.