From 0202e3ad7b7ca2f8a37cb7de39f53ae384731f4b Mon Sep 17 00:00:00 2001 From: abocsan-plenty <129151096+abocsan-plenty@users.noreply.github.com> Date: Thu, 5 Dec 2024 19:33:28 +0200 Subject: [PATCH] fix: review e2e test --- .../web/__tests__/support/pageObjects/ProductListPageObject.ts | 3 +-- apps/web/__tests__/test/quarantine/reviews.cy.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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