-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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: SliceHeaderControls #13895
test: SliceHeaderControls #13895
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13895 +/- ##
==========================================
+ Coverage 77.55% 78.14% +0.58%
==========================================
Files 935 934 -1
Lines 47301 47352 +51
Branches 5907 5952 +45
==========================================
+ Hits 36685 37003 +318
+ Misses 10472 10204 -268
- Partials 144 145 +1
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/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx
Outdated
Show resolved
Hide resolved
// @ts-ignore | ||
delete props.forceRefresh; | ||
// @ts-ignore | ||
delete props.toggleExpandSlice; | ||
// @ts-ignore | ||
delete props.exploreChart; | ||
// @ts-ignore | ||
delete props.exportCSV; | ||
// @ts-ignore | ||
delete props.cachedDttm; | ||
// @ts-ignore | ||
delete props.updatedDttm; | ||
// @ts-ignore | ||
delete props.isCached; | ||
// @ts-ignore | ||
delete props.isExpanded; | ||
// @ts-ignore | ||
delete props.sliceCanEdit; |
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.
Is this necessary?
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.
Wondering the same thing... is this serving a purpose? Could do a minProps
and extraProps
object and combine them when needed, if these are not needed in some case. Are they causing a problem, or just noise?
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 explained it better to michael on a call. createProps is a "real prop" that is being used today in the preset (dev data). But the object has some items that are optional, so for those items I am deleting in order to do some test scenarios.
I could do that, but it would involve the cost of adjusting all the other tests. I find it easier to maintain just 2 "different" scenarios than to distribute this across multiple test cases.
This is part of the cost for complex components :-(
superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx
Outdated
Show resolved
Hide resolved
…/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]>
…/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]>
…/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]>
…/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]>
/testenv up |
@rusackas Ephemeral environment spinning up at http://34.215.93.68:8080. Credentials are |
superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/SliceHeaderControls/index.jsx
Outdated
Show resolved
Hide resolved
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
Ephemeral environment shutdown and build artifacts deleted. |
* tests for SliceHeaderControls * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * fix lint error * Improving accessibility Co-authored-by: Michael S. Molina <[email protected]>
* tests for SliceHeaderControls * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * fix lint error * Improving accessibility Co-authored-by: Michael S. Molina <[email protected]>
* tests for SliceHeaderControls * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * Update superset-frontend/src/dashboard/components/SliceHeaderControls/SliceHeaderControls.test.tsx Co-authored-by: Michael S. Molina <[email protected]> * fix lint error * Improving accessibility Co-authored-by: Michael S. Molina <[email protected]>
SUMMARY
Tests for SliceHeaderControls