[e2e tests] Fix flaky product images test: can update a product gallery (#51263)

This commit is contained in:
Adrian Moldovan 2024-09-10 17:16:52 +01:00 committed by GitHub
parent cf4f76ecfb
commit 70716d1a6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

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

View File

@ -280,6 +280,12 @@ test.describe(
const imageSelector = '#product_images_container img';
imagesCount = await page.locator( imageSelector ).count();
await page
.getByRole( 'link', {
name: 'Add product gallery images',
} )
.scrollIntoViewIfNeeded();
await page.locator( imageSelector ).first().hover();
await page.getByRole( 'link', { name: ' Delete' } ).click();