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

test(Migration to RTL): Refactor ActivityTable.test.tsx from Enzyme to RTL #27422

Conversation

rtexelm
Copy link
Member

@rtexelm rtexelm commented Mar 7, 2024

SUMMARY

Replace enzyme with RTL functions. Refactor the tests accordingly.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

npm test ActivityTable.test.tsx

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

Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.49%. Comparing base (6f3afab) to head (1ce11f7).
Report is 19 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27422      +/-   ##
==========================================
+ Coverage   67.46%   67.49%   +0.02%     
==========================================
  Files        1910     1910              
  Lines       74812    74820       +8     
  Branches     8346     8353       +7     
==========================================
+ Hits        50474    50497      +23     
+ Misses      22286    22273      -13     
+ Partials     2052     2050       -2     
Flag Coverage Δ
javascript 57.43% <ø> (+0.04%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rtexelm rtexelm requested a review from justinpark March 7, 2024 21:04
@pull-request-size pull-request-size bot added size/L and removed size/M labels Mar 11, 2024
@rtexelm rtexelm force-pushed the chore/to-rtl-src-features-home-activitytable-test/sc-79134 branch from e4c6a75 to e19f014 Compare March 11, 2024 23:21
@rtexelm rtexelm force-pushed the chore/to-rtl-src-features-home-activitytable-test/sc-79134 branch from e19f014 to f7423a3 Compare March 13, 2024 03:56
@rtexelm
Copy link
Member Author

rtexelm commented Mar 13, 2024

Added a small change in ChartTable.test that was a leftover from yesterday's merge

@rtexelm
Copy link
Member Author

rtexelm commented Mar 19, 2024

@justinpark is this looking better?

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@mistercrunch
Copy link
Member

looks like you'll have to rebase, we address the issue with the missing required checks.

@rtexelm rtexelm force-pushed the chore/to-rtl-src-features-home-activitytable-test/sc-79134 branch from f7423a3 to 1ce11f7 Compare March 22, 2024 20:28
@mistercrunch mistercrunch merged commit 2356702 into apache:master Mar 22, 2024
30 checks passed
Copy link
Member

@justinpark justinpark left a comment

Choose a reason for hiding this comment

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

LGTM!

EandrewJones pushed a commit to UMD-ARLIS/superset that referenced this pull request Apr 5, 2024
EnxDev pushed a commit to EnxDev/superset that referenced this pull request Apr 12, 2024
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants