From 681394a9834a68a9919157b5d619e2ad33c8b6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 2 Sep 2024 17:31:40 +0200 Subject: [PATCH] Revert changes --- frontend/cypress/integration/feature/feature.spec.ts | 4 ++-- frontend/cypress/support/UI.ts | 1 - frontend/src/hooks/useTrafficData.ts | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/cypress/integration/feature/feature.spec.ts b/frontend/cypress/integration/feature/feature.spec.ts index c05f6c180c..fb2ea6321f 100644 --- a/frontend/cypress/integration/feature/feature.spec.ts +++ b/frontend/cypress/integration/feature/feature.spec.ts @@ -29,8 +29,8 @@ describe('feature', () => { } }); - // cy.deleteFeature_API(featureToggleName, projectName); - // cy.deleteProject_API(projectName); + cy.deleteFeature_API(featureToggleName, projectName); + cy.deleteProject_API(projectName); }); beforeEach(() => { diff --git a/frontend/cypress/support/UI.ts b/frontend/cypress/support/UI.ts index 54a66f8c77..d9801a4943 100644 --- a/frontend/cypress/support/UI.ts +++ b/frontend/cypress/support/UI.ts @@ -153,7 +153,6 @@ export const addFlexibleRolloutStrategyToFeature_UI = ( ); cy.wait(500); // Takes a bit to load the screen - this will wait until it finds it or fail - console.log('Waiting for strategy to load'); cy.get('[data-testid=FLEXIBLE_STRATEGY_STICKINESS_ID]'); if (ENTERPRISE) { cy.get('[data-testid=ADD_CONSTRAINT_ID]').click(); diff --git a/frontend/src/hooks/useTrafficData.ts b/frontend/src/hooks/useTrafficData.ts index 00c6e184d9..bbd7b74ef6 100644 --- a/frontend/src/hooks/useTrafficData.ts +++ b/frontend/src/hooks/useTrafficData.ts @@ -62,7 +62,7 @@ export const toSelectablePeriod = ( dayCount, label: label || - "date.toLocaleString('en-US', { month: 'long', year: 'numeric' })", + date.toLocaleString('en-US', { month: 'long', year: 'numeric' }), }; };