[e2e tests] Fix create a simple product test flakiness (#45700)

This commit is contained in:
Adrian Moldovan 2024-03-20 16:01:12 +02:00 committed by GitHub
parent 7c7ed0d7c4
commit a7fb611665
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: fixed flaky product create test

View File

@ -30,7 +30,7 @@ test.describe( 'General tab', () => {
'The block product editor is not being tested'
);
test( 'can create a simple product with categories, tags and with passowrd required', async ( {
test( 'can create a simple product with categories, tags and with password required', async ( {
page,
} ) => {
await page.goto( NEW_EDITOR_ADD_PRODUCT_URL );
@ -143,8 +143,8 @@ test.describe( 'General tab', () => {
).toBeVisible();
await expect(
page.getByRole( 'link', { name: categoryName } )
).toBeVisible();
await page.getByRole( 'link', { name: categoryName } ).count()
).toBeGreaterThan( 0 );
await expect(
page.getByRole( 'link', { name: tagName } )