Skip to content

Commit

Permalink
test(InputSelect): add tests for required field
Browse files Browse the repository at this point in the history
  • Loading branch information
domihustinova committed Sep 12, 2024
1 parent 69005ec commit 9eaf260
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/orbit-components/src/InputSelect/InputSelect.ct-story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,19 @@ export function InputSelectStory() {
label="Custom label"
help="Do or do not. There is no try."
/>
<InputSelect
options={simpleOptions}
label="Custom label"
help="Do or do not. There is no try."
required
/>
<InputSelect options={simpleOptions} label="Custom label" error="You shall not pass!" />
<InputSelect
options={simpleOptions}
label="Custom label"
error="You shall not pass!"
required
/>
<InputSelect options={simpleOptions} width="100px" />
</div>
);
Expand Down

0 comments on commit 9eaf260

Please sign in to comment.