diff --git a/apps/web/__tests__/support/pageObjects/ProductListPageObject.ts b/apps/web/__tests__/support/pageObjects/ProductListPageObject.ts index 30f010765..f5f5b397e 100644 --- a/apps/web/__tests__/support/pageObjects/ProductListPageObject.ts +++ b/apps/web/__tests__/support/pageObjects/ProductListPageObject.ts @@ -80,8 +80,7 @@ export class ProductListPageObject extends PageObject { cy.intercept('/plentysystems/getProduct').as('getProduct'); cy.intercept('/plentysystems/getReview').as('getReview'); this.products.first().click(); - cy.wait('@getProduct'); - cy.wait('@getReview'); + cy.wait(['@getProduct', '@getReview']); return this; } } diff --git a/apps/web/__tests__/test/quarantine/reviews.cy.ts b/apps/web/__tests__/test/quarantine/reviews.cy.ts index 9f4e0045e..0e61d8f70 100644 --- a/apps/web/__tests__/test/quarantine/reviews.cy.ts +++ b/apps/web/__tests__/test/quarantine/reviews.cy.ts @@ -30,7 +30,6 @@ beforeEach(() => { reviewPage.deleteAllReviews(); myAccount.clickTopBarLogoutButton(); - cy.visitAndHydrate(paths.home); }); @@ -38,7 +37,7 @@ beforeEach(() => { describe('Reviews functionality check.', () => { it('Checks review section.', () => { cookieBar.acceptAll(); - homePage.goToCategory(); + cy.visitAndHydrate('/coupons'); productListPage.goToProduct(); reviewPage