Skip to content

Commit

Permalink
Try: Fix flaky DataViews e2e test (WordPress#62413)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: cbravobernal <cbravobernal@git.wordpress.org>
  • Loading branch information
3 people authored and patil-vipul committed Jun 17, 2024
1 parent 2351d57 commit 3121d7e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ test.describe( 'Dataviews List Layout', () => {
// Make sure the items have loaded before reaching for the 1st item in the list.
await expect( page.getByRole( 'grid' ) ).toBeVisible();
await page.keyboard.press( 'Tab' );
await expect( page.getByLabel( 'Privacy Policy' ) ).toBeFocused();
await expect(
page.getByRole( 'grid' ).getByRole( 'button' ).first()
).toBeFocused();
} );

test( 'Navigates from items list to preview via TAB, and vice versa', async ( {
Expand Down

0 comments on commit 3121d7e

Please sign in to comment.