From 03143bf9ad716ea44b358c091931b5de7d498b0c Mon Sep 17 00:00:00 2001 From: Evan Rusackas Date: Thu, 20 Jun 2024 10:41:59 -0600 Subject: [PATCH] chore(applitools): making tests more static for consistent testing (#28201) --- superset-frontend/src/components/Table/Table.stories.tsx | 6 +++--- .../Table/cell-renderers/TimeCell/TimeCell.stories.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/components/Table/Table.stories.tsx b/superset-frontend/src/components/Table/Table.stories.tsx index 5db718e717..423da5137c 100644 --- a/superset-frontend/src/components/Table/Table.stories.tsx +++ b/superset-frontend/src/components/Table/Table.stories.tsx @@ -594,19 +594,19 @@ const shoppingData: ShoppingData[] = [ { key: 1, item: 'Floppy Disk 10 pack', - orderDate: Date.now(), + orderDate: new Date('2015-07-02T16:16:00Z').getTime(), price: 9.99, }, { key: 2, item: 'DVD 100 pack', - orderDate: Date.now(), + orderDate: new Date('2015-07-02T16:16:00Z').getTime(), price: 7.99, }, { key: 3, item: '128 GB SSD', - orderDate: Date.now(), + orderDate: new Date('2015-07-02T16:16:00Z').getTime(), price: 3.99, }, ]; diff --git a/superset-frontend/src/components/Table/cell-renderers/TimeCell/TimeCell.stories.tsx b/superset-frontend/src/components/Table/cell-renderers/TimeCell/TimeCell.stories.tsx index 39ae19c29d..fcbc4ea846 100644 --- a/superset-frontend/src/components/Table/cell-renderers/TimeCell/TimeCell.stories.tsx +++ b/superset-frontend/src/components/Table/cell-renderers/TimeCell/TimeCell.stories.tsx @@ -30,7 +30,7 @@ export const Basic: ComponentStory = args => ( ); Basic.args = { - value: Date.now(), + value: new Date('2015-07-02T16:16:00Z').getTime(), }; Basic.argTypes = {