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: SelectAsyncControl #13638

Merged
merged 3 commits into from Mar 26, 2021
Merged

Conversation

yardz
Copy link
Contributor

@yardz yardz commented Mar 15, 2021

SUMMARY

Tests for SelectAsyncControl

  • Moved to own folder
  • Creating tests for the component

TEST PLAN

No behavior changes and the interface for importing was maintained.
All tests must pass.

@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #13638 (0db742b) into master (a35825d) will decrease coverage by 3.82%.
The diff coverage is 78.66%.

❗ Current head 0db742b differs from pull request most recent head 508e979. Consider uploading reports for the commit 508e979 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13638      +/-   ##
==========================================
- Coverage   77.21%   73.39%   -3.83%     
==========================================
  Files         912      621     -291     
  Lines       46449    22073   -24376     
  Branches     5725     5740      +15     
==========================================
- Hits        35866    16200   -19666     
+ Misses      10447     5729    -4718     
- Partials      136      144       +8     
Flag Coverage Δ
cypress 56.02% <49.93%> (-0.55%) ⬇️
hive ?
javascript 63.65% <71.98%> (+0.60%) ⬆️
postgres ?
presto ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
...rset-frontend/src/SqlLab/components/QueryTable.jsx 66.66% <ø> (ø)
...erset-frontend/src/SqlLab/components/SqlEditor.jsx 56.01% <ø> (ø)
...et-frontend/src/SqlLab/components/TableElement.jsx 88.37% <ø> (ø)
superset-frontend/src/chart/chartReducer.ts 66.19% <ø> (+1.81%) ⬆️
...ontend/src/common/hooks/usePrevious/usePrevious.ts 100.00% <ø> (ø)
...ontend/src/components/CertifiedIconWithTooltip.tsx 54.54% <0.00%> (-5.46%) ⬇️
...rset-frontend/src/components/ErrorMessage/types.ts 100.00% <ø> (ø)
...rset-frontend/src/components/ProgressBar/index.tsx 100.00% <ø> (ø)
...nd/src/components/SupersetResourceSelect/index.tsx 90.32% <ø> (ø)
...et-frontend/src/components/TableView/TableView.tsx 96.42% <ø> (ø)
... and 407 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 a35825d...508e979. Read the comment docs.

@junlincc junlincc requested review from robdiciuccio and removed request for robdiciuccio March 17, 2021 00:49
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! Just two small nits


beforeEach(() => {
jest.resetAllMocks();
defaultProps = {
Copy link
Member

Choose a reason for hiding this comment

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

I think the same comment as the previous PRs. No need to replace the entire props

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#13753 (comment)

Just linking the same answer to "stay registered"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done by factory: #13753 (comment)

@yardz yardz mentioned this pull request Mar 24, 2021
@yardz yardz closed this Mar 25, 2021
@yardz yardz reopened this Mar 25, 2021
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 416f188 into apache:master Mar 26, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* SelectAsyncControl tests

* fix: lint error

* applying factory to  props
@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