Skip to content

Commit

Permalink
Adjust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 14, 2025
1 parent c650ec0 commit 483936c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ test.describe( 'Navigating the block hierarchy', () => {
name: 'Block navigation structure',
} )
).toBeVisible();
// Move focus to the first item in the List view,
// which happens to be the Group block.
await page.keyboard.press( 'Tab' );
await page.keyboard.press( 'Enter' );

await expect(
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/specs/site-editor/list-view.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ test.describe( 'Site Editor List View', () => {
} );
await expect( listView ).toBeVisible();

// Move focus to the first item in the List view,
// which happens to be the site title block.
await page.keyboard.press( 'Tab' );
// The site title block should have focus.
await expect(
listView.getByRole( 'link', {
Expand Down

0 comments on commit 483936c

Please sign in to comment.