[e2e tests] Fix flaky product-attributes-block-editor -> can add existing attributes (#50485)

This commit is contained in:
Adrian Moldovan 2024-08-08 14:09:08 +01:00 committed by GitHub
parent e280ba3ddc
commit 49109ea287
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: fix flakiness in product attributes test

View File

@ -282,7 +282,10 @@ test(
} );
await test.step( 'add an existing attribute', async () => {
await page.getByRole( 'button', { name: 'Add new' } ).click();
await page
.getByRole( 'button', { name: 'Add new' } )
.first()
.click();
await page.waitForLoadState( 'domcontentloaded' );