Check first element on the page (#40423)

This commit is contained in:
nigeljamesstevenson 2023-10-06 18:11:59 +01:00 committed by GitHub
commit e57cb30e31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Fix for occasionally flaky page load test

View File

@ -231,6 +231,7 @@ for ( const currentPage of wcPages ) {
await expect( await expect(
page.locator( currentPage.subpages[ i ].element ) page.locator( currentPage.subpages[ i ].element )
.first()
).toBeVisible(); ).toBeVisible();
await expect( await expect(