Check first element on the page (#40423)
This commit is contained in:
commit
e57cb30e31
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Fix for occasionally flaky page load test
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue