From 54be2c6ecaf904ec058f4200a2291425b193c79b Mon Sep 17 00:00:00 2001 From: Cheng Shi Date: Fri, 8 Nov 2024 11:39:51 -0500 Subject: [PATCH] fix: change utc time back to last ver. for passing the test --- tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx b/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx index d0d64bd76..fca290fe0 100644 --- a/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx +++ b/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx @@ -479,8 +479,8 @@ describe('Dataset', () => { }) it('loads the embargoed files', () => { - const utcDate = moment.utc().startOf('day').add(100, 'years').toDate() - const expectedDate = DateHelper.toDisplayFormat(utcDate) + const utcDate = moment.utc().startOf('day').add(100, 'years') + const expectedDate = utcDate.toISOString().split('T')[0] cy.wrap( DatasetHelper.createWithFiles(FileHelper.createMany(1)).then((dataset) =>