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: Adds storybook to SearchInput component #13410

Merged
merged 2 commits into from
Mar 6, 2021

Conversation

michael-s-molina
Copy link
Member

SUMMARY

  • Adds storybook to SearchInput component
  • Moves SearchInput tests to component's folder

TEST PLAN

1 - Execute SearchInput tests
2 - All tests should pass

@rusackas

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #13410 (e2c32aa) into master (f19a830) will decrease coverage by 2.88%.
The diff coverage is 62.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13410      +/-   ##
==========================================
- Coverage   76.33%   73.44%   -2.89%     
==========================================
  Files         900      606     -294     
  Lines       45596    21263   -24333     
  Branches     5491     5436      -55     
==========================================
- Hits        34804    15617   -19187     
+ Misses      10648     5519    -5129     
+ Partials      144      127      -17     
Flag Coverage Δ
cypress 57.97% <33.99%> (-0.82%) ⬇️
hive ?
javascript 63.36% <58.77%> (+0.60%) ⬆️
mysql ?
postgres ?
presto ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
...erset-frontend/src/SqlLab/components/SouthPane.jsx 82.05% <ø> (ø)
...erset-frontend/src/SqlLab/components/SqlEditor.jsx 55.86% <ø> (+1.23%) ⬆️
...rc/common/components/Collapse/Collapse.stories.tsx 0.00% <ø> (ø)
.../src/common/components/Tooltip/Tooltip.stories.tsx 0.00% <ø> (ø)
...et-frontend/src/components/Alert/Alert.stories.tsx 0.00% <ø> (ø)
...d/src/components/AnchorLink/AnchorLink.stories.tsx 0.00% <0.00%> (ø)
...erset-frontend/src/components/AnchorLink/index.jsx 95.83% <ø> (ø)
...mponents/AsyncAceEditor/AsyncAceEditor.stories.tsx 0.00% <ø> (ø)
...-frontend/src/components/Button/Button.stories.tsx 85.00% <ø> (ø)
...src/components/ButtonGroup/ButtonGroup.stories.tsx 0.00% <ø> (ø)
... and 415 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 f19a830...c5bb03e. Read the comment docs.

}: SearchInputProps) => {
const [currentValue, setCurrentValue] = useState(value);
return (
<div style={{ width: 230 }}>
Copy link
Member

Choose a reason for hiding this comment

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

Just a curiosity - 230 seems... specific. Is there a reason for that, e.g. a layout feature (full-width, etc) that should be tweakable or demonstrated by the story?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not really, it's just to look more beautiful when viewing the story. The story host takes full width and I don't want the Select to stretch 😉.

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.

Just a nit/qustion... approving, and will circle back for the merge one way or another.

Co-authored-by: Evan Rusackas <[email protected]>
@rusackas rusackas merged commit c1e9287 into apache:master Mar 6, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* test: Adds storybook to SearchInput component

* Fixes placeholder text

Co-authored-by: Evan Rusackas <[email protected]>

Co-authored-by: Evan Rusackas <[email protected]>
@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 test:component 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants