-
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
test: PropertiesModal #13818
test: PropertiesModal #13818
Conversation
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
superset-frontend/src/explore/components/PropertiesModal/PropertiesModal.test.tsx
Show resolved
Hide resolved
import PropertiesModal from '.'; | ||
|
||
const createProps = () => ({ | ||
slice: ({ |
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.
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.
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.
I tried to apply the slice but it didn't work, at least not in a "simple" way...
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
* Tests for test-PropertiesModal * finish fetchMock to solve conflicts * clean fetchMock
* Tests for test-PropertiesModal * finish fetchMock to solve conflicts * clean fetchMock
SUMMARY
Tests for component PropertiesModal