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: CacheLabel #13318

Merged
merged 6 commits into from Feb 25, 2021
Merged

test: CacheLabel #13318

merged 6 commits into from Feb 25, 2021

Conversation

yardz
Copy link
Contributor

@yardz yardz commented Feb 24, 2021

SUMMARY

  • Extended the label props to HTMLAttributes (avoid errors for invalid props when they are actually valid)
  • Spliting the content of tolltip into another component: TolltipContent.
  • Converting component to typescript.
  • Creating tests for these components

TEST PLAN

No change in behavior. All tests must pass.

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

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

LGTM!

import moment from 'moment';
import { TooltipContent } from './TooltipContent';

test('Rendering TooltipContent correctly - no timestep', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Small typo timestep to be timestamp

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy and paste error rsrsrs
Thanks

);
});

test('Rendering TooltipContent correctly - with timestep', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Same typo. Found also in the other tests

@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #13318 (b00415c) into master (29d6420) will decrease coverage by 4.45%.
The diff coverage is 60.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13318      +/-   ##
==========================================
- Coverage   77.20%   72.74%   -4.46%     
==========================================
  Files         872      577     -295     
  Lines       45101    21021   -24080     
  Branches     5435     5375      -60     
==========================================
- Hits        34820    15292   -19528     
+ Misses      10158     5606    -4552     
  Partials      123      123              
Flag Coverage Δ
cypress 58.18% <20.95%> (-0.36%) ⬇️
javascript 62.31% <60.05%> (-0.03%) ⬇️
python ?

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

Impacted Files Coverage Δ
...et-frontend/src/components/Icons/icons.stories.jsx 0.00% <0.00%> (ø)
superset-frontend/src/components/Label/index.tsx 100.00% <ø> (ø)
...c/components/ListViewCard/ListViewCard.stories.tsx 0.00% <0.00%> (ø)
...set-frontend/src/components/ListViewCard/index.tsx 100.00% <ø> (+5.45%) ⬆️
...perset-frontend/src/views/CRUD/alert/AlertList.tsx 75.75% <ø> (ø)
...ntend/src/views/CRUD/annotation/AnnotationList.tsx 76.92% <ø> (ø)
...ews/CRUD/annotationlayers/AnnotationLayersList.tsx 77.88% <ø> (ø)
...d/src/views/CRUD/csstemplates/CssTemplatesList.tsx 78.26% <ø> (ø)
.../src/views/CRUD/data/savedquery/SavedQueryList.tsx 71.55% <ø> (ø)
...perset-frontend/src/views/CRUD/chart/ChartCard.tsx 78.94% <40.00%> (+0.56%) ⬆️
... and 311 more

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 29d6420...0a5b008. Read the comment docs.

@yardz
Copy link
Contributor Author

yardz commented Feb 25, 2021

@ktmud or @rusackas

@rusackas rusackas merged commit 45cca3a into apache:master Feb 25, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* add HTMLAttributes on Label Component

* Split TooltipContent

* moving "CacheLabel.jsx" to "CacheLabel" folder

* remove "data-test-id"

* Fix timestamp name

* removing unused file
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.0 labels Mar 12, 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/L test:component 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants