[e2e test] Fix strict mode violation in delete variation test (#50838)

This commit is contained in:
Adrian Moldovan 2024-08-21 16:57:48 +01:00 committed by GitHub
parent 7dd2f11805
commit cb9912bcf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev

View File

@ -368,7 +368,9 @@ test.describe( 'Variations tab', { tag: '@gutenberg' }, () => {
await page.getByLabel( 'Delete variation' ).click();
await expect(
page.getByText( '1 variation deleted.' )
page
.getByLabel( 'Dismiss this notice' )
.getByText( '1 variation deleted.' )
).toBeVisible();
await page.waitForSelector(