Skip to content

Commit

Permalink
Merge pull request #644 from MyPureCloud/feature/fix-dst-tests
Browse files Browse the repository at this point in the history
test(time-zone-picker): set exact date for tests
  • Loading branch information
daragh-king-genesys authored Oct 7, 2024
2 parents 5f5a485 + 9fabc7f commit e0929ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ exports[`#render should render component as expected (1) 1`] = `
<gux-option value="America/Godthab">
<div class="gux-option-wrapper">
<div>
Godthab, Greenland (UTC-01:00)
Godthab, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -1425,7 +1425,7 @@ exports[`#render should render component as expected (1) 1`] = `
<gux-option value="America/Nuuk">
<div class="gux-option-wrapper">
<div>
Nuuk, Greenland (UTC-01:00)
Nuuk, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -5658,7 +5658,7 @@ exports[`#render should render component as expected (1) 1`] = `
<gux-option value="America/Godthab">
<div class="gux-option-wrapper">
<div>
Godthab, Greenland (UTC-01:00)
Godthab, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -6138,7 +6138,7 @@ exports[`#render should render component as expected (1) 1`] = `
<gux-option value="America/Nuuk">
<div class="gux-option-wrapper">
<div>
Nuuk, Greenland (UTC-01:00)
Nuuk, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -10376,7 +10376,7 @@ exports[`#render should render component as expected (2) 1`] = `
<gux-option value="America/Godthab">
<div class="gux-option-wrapper">
<div>
Godthab, Greenland (UTC-01:00)
Godthab, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -10856,7 +10856,7 @@ exports[`#render should render component as expected (2) 1`] = `
<gux-option value="America/Nuuk">
<div class="gux-option-wrapper">
<div>
Nuuk, Greenland (UTC-01:00)
Nuuk, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -15089,7 +15089,7 @@ exports[`#render should render component as expected (2) 1`] = `
<gux-option value="America/Godthab">
<div class="gux-option-wrapper">
<div>
Godthab, Greenland (UTC-01:00)
Godthab, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -15569,7 +15569,7 @@ exports[`#render should render component as expected (2) 1`] = `
<gux-option value="America/Nuuk">
<div class="gux-option-wrapper">
<div>
Nuuk, Greenland (UTC-01:00)
Nuuk, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -19819,7 +19819,7 @@ exports[`#render should render component as expected (3) 1`] = `
<gux-option value="America/Godthab">
<div class="gux-option-wrapper">
<div>
Godthab, Greenland (UTC-01:00)
Godthab, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -20299,7 +20299,7 @@ exports[`#render should render component as expected (3) 1`] = `
<gux-option value="America/Nuuk">
<div class="gux-option-wrapper">
<div>
Nuuk, Greenland (UTC-01:00)
Nuuk, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -24532,7 +24532,7 @@ exports[`#render should render component as expected (3) 1`] = `
<gux-option value="America/Godthab">
<div class="gux-option-wrapper">
<div>
Godthab, Greenland (UTC-01:00)
Godthab, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down Expand Up @@ -25012,7 +25012,7 @@ exports[`#render should render component as expected (3) 1`] = `
<gux-option value="America/Nuuk">
<div class="gux-option-wrapper">
<div>
Nuuk, Greenland (UTC-01:00)
Nuuk, Greenland (UTC-02:00)
</div>
<span class="gux-default-zone"></span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ describe('#render ', () => {
`<gux-time-zone-picker-beta value="Etc/GMT+1" custom-default="America/Detroit" custom-default-label="Business Timezone"><gux-time-zone-picker-beta>`
].forEach((html, index) => {
it(`should render component as expected (${index + 1})`, async () => {
jest.useFakeTimers({ advanceTimers: true });
jest.setSystemTime(new Date('2023-09-26'));
const page = await newSpecPage({ components, html });

expect(page.root).toMatchSnapshot();
Expand Down

0 comments on commit e0929ae

Please sign in to comment.