From 7fe6f4ecc75c8d7263d3816b335930e7e01262e9 Mon Sep 17 00:00:00 2001 From: Dmytro Asieiev Date: Mon, 16 Dec 2024 22:11:30 +0300 Subject: [PATCH] Fixed flaky tests in DMS. --- .../yves/customer-account-management/customer-auth-dms.cy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/yves/customer-account-management/customer-auth-dms.cy.ts b/cypress/e2e/yves/customer-account-management/customer-auth-dms.cy.ts index 7a98970b..6503fa9c 100644 --- a/cypress/e2e/yves/customer-account-management/customer-auth-dms.cy.ts +++ b/cypress/e2e/yves/customer-account-management/customer-auth-dms.cy.ts @@ -3,6 +3,7 @@ import { LoginPage, CustomerOverviewPage } from '@pages/yves'; import { CustomerAuthDmsDynamicFixtures, CustomerAuthDmsStaticFixtures } from '@interfaces/yves'; import { CreateStoreScenario, EnableCmsBlockForAllStoresScenario, UserLoginScenario } from '@scenarios/backoffice'; import { SelectStoreScenario } from '@scenarios/yves'; +import { retryableBefore } from '../../../support/e2e'; describeIfDynamicStoreEnabled( 'customer auth dms', @@ -18,7 +19,7 @@ describeIfDynamicStoreEnabled( let dynamicFixtures: CustomerAuthDmsDynamicFixtures; let staticFixtures: CustomerAuthDmsStaticFixtures; - before((): void => { + retryableBefore((): void => { ({ staticFixtures, dynamicFixtures } = Cypress.env()); userLoginScenario.execute({