-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
fix: failed timezone selector UT #17370
Conversation
e1747dc
to
2d046b6
Compare
const selection = await screen.findByTitle('GMT -06:00 (America/Belize)'); | ||
|
||
const isDaylight = moment('now').isDST(); | ||
let findTitle = 'GMT -07:00 (Mountain Standard Time)'; | ||
if (isDaylight) { | ||
findTitle = 'GMT -06:00 (Mountain Daylight Time)'; | ||
} | ||
const selection = await screen.findByTitle(findTitle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should coverage "offsetsToName" in src/components/TimezoneSelector/index.tsx
Codecov Report
@@ Coverage Diff @@
## master #17370 +/- ##
=======================================
Coverage 76.92% 76.92%
=======================================
Files 1036 1036
Lines 55759 55759
Branches 7628 7628
=======================================
Hits 42892 42892
Misses 12611 12611
Partials 256 256
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
SUMMARY
currently, frontend CI is blocked by timezone selector UT. We should get Standard Time or Daylight Time in the test case.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION