-
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: Adds storybook to SearchInput component #13410
test: Adds storybook to SearchInput component #13410
Conversation
Codecov Report
@@ 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
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/components/SearchInput/SearchInput.stories.tsx
Outdated
Show resolved
Hide resolved
}: SearchInputProps) => { | ||
const [currentValue, setCurrentValue] = useState(value); | ||
return ( | ||
<div style={{ width: 230 }}> |
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.
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?
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.
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 😉.
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.
Just a nit/qustion... approving, and will circle back for the merge one way or another.
Co-authored-by: Evan Rusackas <[email protected]>
* test: Adds storybook to SearchInput component * Fixes placeholder text Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Evan Rusackas <[email protected]>
SUMMARY
SearchInput
componentSearchInput
tests to component's folderTEST PLAN
1 - Execute
SearchInput
tests2 - All tests should pass
@rusackas
ADDITIONAL INFORMATION