[e2e tests] Fix create a simple product test flakiness (#45700)
This commit is contained in:
parent
7c7ed0d7c4
commit
a7fb611665
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
E2E tests: fixed flaky product create test
|
|
@ -30,7 +30,7 @@ test.describe( 'General tab', () => {
|
||||||
'The block product editor is not being tested'
|
'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,
|
page,
|
||||||
} ) => {
|
} ) => {
|
||||||
await page.goto( NEW_EDITOR_ADD_PRODUCT_URL );
|
await page.goto( NEW_EDITOR_ADD_PRODUCT_URL );
|
||||||
|
@ -143,8 +143,8 @@ test.describe( 'General tab', () => {
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole( 'link', { name: categoryName } )
|
await page.getByRole( 'link', { name: categoryName } ).count()
|
||||||
).toBeVisible();
|
).toBeGreaterThan( 0 );
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole( 'link', { name: tagName } )
|
page.getByRole( 'link', { name: tagName } )
|
||||||
|
|
Loading…
Reference in New Issue