Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: Use ISO format for dates tests #908

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
frontend: Use ISO format for dates tests
Node has changes how they format the dates when using "toLocaleString",
introducing a special character (U+202f) instead of a space.
Our first instinct was to lower the Node version and wait for a fix,
but according to [1], Node doesn't seem to be reverting it soon and
mentions one shouldn't use localized strings for testing...

So, in order to avoid this, this patch makes the dates show up in
ISO format.

[1] nodejs/node#46123
  • Loading branch information
joaquimrocha committed Jan 15, 2023
commit b4411346794f5db08a4328a4576aa06f89b0f23e
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ exports[`Storyshots Resource/MetadataDisplay Metadata Display 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
6/2/2021, 12:00:00 AM UTC
2021-06-02T00:00:00.000Z
</span>
</td>
</tr>
@@ -188,7 +188,7 @@ exports[`Storyshots Resource/MetadataDisplay With Extra Rows 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
6/2/2021, 12:00:00 AM UTC
2021-06-02T00:00:00.000Z
</span>
</td>
</tr>
@@ -372,7 +372,7 @@ exports[`Storyshots Resource/MetadataDisplay With Owner References 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
6/2/2021, 12:00:00 AM UTC
2021-06-02T00:00:00.000Z
</span>
</td>
</tr>
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ exports[`Storyshots ResourceTable Name Search 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="12/15/2021, 2:57:13 PM UTC"
title="2021-12-15T14:57:13.000Z"
>
3mo
<span />
@@ -220,7 +220,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="12/15/2021, 2:57:13 PM UTC"
title="2021-12-15T14:57:13.000Z"
>
3mo
<span />
@@ -251,7 +251,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="12/15/2021, 2:57:13 PM UTC"
title="2021-12-15T14:57:13.000Z"
>
3mo
<span />
@@ -282,7 +282,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="12/15/2021, 2:57:13 PM UTC"
title="2021-12-15T14:57:13.000Z"
>
3mo
<span />
@@ -313,7 +313,7 @@ exports[`Storyshots ResourceTable No Filter 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="12/15/2021, 2:57:13 PM UTC"
title="2021-12-15T14:57:13.000Z"
>
3mo
<span />
Original file line number Diff line number Diff line change
@@ -230,7 +230,7 @@ exports[`Storyshots crd/CustomResourceDetails No Error 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
12/15/2021, 2:57:13 PM UTC
2021-12-15T14:57:13.000Z
</span>
</td>
</tr>
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ exports[`Storyshots CronJob/CronJobDetailsView Every Ast 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
1/1/2022, 12:00:00 AM UTC
2022-01-01T00:00:00.000Z
</span>
</td>
</tr>
@@ -476,7 +476,7 @@ exports[`Storyshots CronJob/CronJobDetailsView Every Minute 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
1/1/2022, 12:00:00 AM UTC
2022-01-01T00:00:00.000Z
</span>
</td>
</tr>
Original file line number Diff line number Diff line change
@@ -129,7 +129,7 @@ exports[`Storyshots endpoints/EndpointsDetailsView Default 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
4/25/2020, 12:00:00 AM UTC
2020-04-25T00:00:00.000Z
</span>
</td>
</tr>
Original file line number Diff line number Diff line change
@@ -166,7 +166,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -203,7 +203,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -240,7 +240,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -277,7 +277,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -314,7 +314,7 @@ exports[`Storyshots endpoints/EndpointsListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ exports[`Storyshots hpa/HpaDetailsView Default 1`] = `
<span
class="MuiTypography-root makeStyles-valueLabel MuiTypography-body1"
>
10/20/2022, 11:10:58 AM UTC
2022-10-20T11:10:58.000Z
</span>
</td>
</tr>
Original file line number Diff line number Diff line change
@@ -267,7 +267,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -337,7 +337,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -407,7 +407,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -477,7 +477,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
@@ -547,7 +547,7 @@ exports[`Storyshots hpa/HpaListView Items 1`] = `
>
<p
class="MuiTypography-root makeStyles-noWrap MuiTypography-body1"
title="1/1/2020, 12:00:00 AM UTC"
title="2020-01-01T00:00:00.000Z"
>
3mo
<span />
Loading