[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'
|
||||
);
|
||||
|
||||
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 } )
|
||||
|
|
Loading…
Reference in New Issue