From 71d52242831dcba3e257b6983f98cc9aa203c363 Mon Sep 17 00:00:00 2001 From: Gavin Reynolds Date: Mon, 27 Nov 2023 14:08:13 +0000 Subject: [PATCH] 1 Day is the default, so reset to that Signed-off-by: Gavin Reynolds --- cypress/e2e/Settings/settings.spec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/Settings/settings.spec.js b/cypress/e2e/Settings/settings.spec.js index e84838979..8da6ddf2f 100644 --- a/cypress/e2e/Settings/settings.spec.js +++ b/cypress/e2e/Settings/settings.spec.js @@ -57,7 +57,8 @@ describe('Manage Settings', { failFast: { enabled: false } }, () => { .should('contain', expectedIncidentDateFormat); }); - ['1 Day', '3 Days', '1 Week', '2 Weeks', '1 Month', '3 Months', '180 Days'].forEach((tenor) => { + // 1 Day is the default, so reset to that after this test + ['3 Days', '1 Week', '2 Weeks', '1 Month', '3 Months', '180 Days', '1 Day'].forEach((tenor) => { it(`Update default since date lookback to ${tenor}`, () => { const [sinceDateNum, sinceDateTenor] = tenor.split(' '); const expectedDate = moment().subtract(Number(sinceDateNum), sinceDateTenor).format('L');