Skip to content
Prev Previous commit
Next Next commit
Refine test.
  • Loading branch information
afercia committed Feb 9, 2023
commit 390072452c8e88b16b83ebd8d27234673fc579b9
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