Skip to content

Commit

Permalink
1 Day is the default, so reset to that
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Nov 27, 2023
1 parent c2c8361 commit 71d5224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/Settings/settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 71d5224

Please sign in to comment.