From f9fa0d018a127f1e37ff6cad4f5d84568e761258 Mon Sep 17 00:00:00 2001 From: Hakwoo Kim Date: Tue, 10 Sep 2024 10:15:15 -0400 Subject: [PATCH] update e2e to enable the feature --- .../cypress/e2e/regression/site-theme/site-theme.e2e.cy.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/site-theme/site-theme.e2e.cy.ts b/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/site-theme/site-theme.e2e.cy.ts index c5f4dca2d46..a14132793ab 100644 --- a/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/site-theme/site-theme.e2e.cy.ts +++ b/projects/storefrontapp-e2e-cypress/cypress/e2e/regression/site-theme/site-theme.e2e.cy.ts @@ -6,10 +6,16 @@ import { isolateTests } from '../../../support/utils/test-isolation'; import * as siteTheme from '../../../helpers/site-theme'; +import { FeaturesConfig } from '@spartacus/core'; context('Site Theme', { testIsolation: false }, () => { isolateTests(); before(() => { + cy.cxConfig({ + features: { + useNewSiteThemeSwitcher: true, + }, + } as FeaturesConfig); cy.visit('/'); // TODO: (CXSPA-8363) Remove the manual addition of the Theme component in e2e test when sample data is available siteTheme.interceptToAddThemeCompnent();