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: PropertiesModal #13818

Merged
merged 3 commits into from
Apr 5, 2021
Merged

test: PropertiesModal #13818

merged 3 commits into from
Apr 5, 2021

Conversation

yardz
Copy link
Contributor

@yardz yardz commented Mar 26, 2021

SUMMARY

Tests for component PropertiesModal

@codecov
Copy link

codecov bot commented Mar 26, 2021

Codecov Report

Merging #13818 (ff7e048) into master (a45a5e1) will increase coverage by 0.80%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13818      +/-   ##
==========================================
+ Coverage   77.54%   78.35%   +0.80%     
==========================================
  Files         934      933       -1     
  Lines       47249    47281      +32     
  Branches     5892     5940      +48     
==========================================
+ Hits        36641    37046     +405     
+ Misses      10464    10091     -373     
  Partials      144      144              
Flag Coverage Δ
cypress 56.04% <ø> (-0.01%) ⬇️
javascript 66.36% <100.00%> (+2.62%) ⬆️

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

Impacted Files Coverage Δ
...d/src/explore/components/PropertiesModal/index.tsx 81.94% <100.00%> (ø)
...ters/FiltersConfigModal/FiltersConfigForm/state.ts 76.00% <0.00%> (-12.89%) ⬇️
...veFilters/FilterBar/FilterControls/FilterValue.tsx 74.24% <0.00%> (-11.22%) ⬇️
...perset-frontend/src/explore/components/Control.tsx 91.66% <0.00%> (-3.79%) ⬇️
...set-frontend/src/dashboard/util/getDropPosition.js 90.90% <0.00%> (-1.52%) ⬇️
...end/src/views/CRUD/data/database/DatabaseModal.tsx 75.97% <0.00%> (-1.00%) ⬇️
...onfigModal/FiltersConfigForm/FiltersConfigForm.tsx 93.10% <0.00%> (-0.65%) ⬇️
...frontend/src/views/CRUD/alert/AlertReportModal.tsx 62.44% <0.00%> (-0.09%) ⬇️
superset-frontend/src/explore/store.js 92.85% <0.00%> (ø)
superset-frontend/src/components/Icon/index.tsx 100.00% <0.00%> (ø)
... and 57 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 a45a5e1...ff7e048. Read the comment docs.

@yardz yardz closed this Mar 26, 2021
@yardz yardz reopened this Mar 26, 2021
import PropertiesModal from '.';

const createProps = () => ({
slice: ({
Copy link
Member

Choose a reason for hiding this comment

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

Can you check if you can use some of the mocks available in spec/fixtures? I know that we have some slices and charts already defined there. If something is missing we could increment. We can also use these mocks in fetch results.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to apply the slice but it didn't work, at least not in a "simple" way...

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM

@rusackas rusackas merged commit 592c566 into apache:master Apr 5, 2021
@yardz yardz deleted the test-PropertiesModal branch April 5, 2021 19:19
lyndsiWilliams pushed a commit to preset-io/superset that referenced this pull request Apr 7, 2021
* Tests for test-PropertiesModal

* finish fetchMock to solve conflicts

* clean fetchMock
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* Tests for test-PropertiesModal

* finish fetchMock to solve conflicts

* clean fetchMock
@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.

5 participants