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

fix: failed timezone selector UT #17370

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

zhaoyongjie
Copy link
Member

@zhaoyongjie zhaoyongjie commented Nov 8, 2021

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

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Comment on lines -57 to +63
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);
Copy link
Member Author

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
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #17370 (fa57f43) into master (ed4a628) will not change coverage.
The diff coverage is n/a.

❗ Current head fa57f43 differs from pull request most recent head 2d046b6. Consider uploading reports for the commit 2d046b6 to get more accurate results
Impacted file tree graph

@@           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           
Flag Coverage Δ
javascript 71.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...frontend/src/components/TimezoneSelector/index.tsx 95.45% <0.00%> (-2.28%) ⬇️
...frontend/src/components/DatabaseSelector/index.tsx 95.00% <0.00%> (ø)
...eFilters/FiltersConfigModal/FiltersConfigModal.tsx 87.71% <0.00%> (+0.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed4a628...2d046b6. Read the comment docs.

Copy link
Member

@michael-s-molina michael-s-molina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhaoyongjie zhaoyongjie merged commit 33a8e87 into apache:master Nov 8, 2021
AAfghahi pushed a commit that referenced this pull request Jan 10, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants