Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions apps/vr-tests/src/stories/ChoiceGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ storiesOf('ChoiceGroup', module)
steps={ new Screener.Steps()
.snapshot('default', { cropTo: '.testWrapper' })
.hover('div.ms-ChoiceField:nth-of-type(1)')
.snapshot('hover selected', { cropTo: '.testWrapper' })
.hover('div.ms-ChoiceField:nth-of-type(2)')
.snapshot('hover unselected', { cropTo: '.testWrapper' })
.click('div.ms-ChoiceField:nth-of-type(1)')
.snapshot('selected', { cropTo: '.testWrapper' })
.click('div.ms-ChoiceField:nth-of-type(1)')
.hover('div.ms-ChoiceField:nth-of-type(1)')
.snapshot('hover selected', { cropTo: '.testWrapper' })
.end()
}
>
Expand All @@ -40,14 +43,12 @@ storiesOf('ChoiceGroup', module)
))
.add('Root', () => (
<ChoiceGroup
defaultSelectedKey='A'
options={ options }
label='Pick one'
/>
))
.add('Required', () => (
<ChoiceGroup
defaultSelectedKey='A'
options={ options }
label='Pick one'
required
Expand All @@ -56,7 +57,6 @@ storiesOf('ChoiceGroup', module)
.add('With icons', () => (
<ChoiceGroup
label='Pick one icon'
defaultSelectedKey='day'
options={ [
{
key: 'day',
Expand All @@ -80,7 +80,6 @@ storiesOf('ChoiceGroup', module)
.add('With default size images', () => (
<ChoiceGroup
label='Pick one image'
defaultSelectedKey='bar'
options={ [
{
key: 'bar',
Expand All @@ -100,7 +99,6 @@ storiesOf('ChoiceGroup', module)
.add('With large size images', () => (
<ChoiceGroup
label='Pick one image'
defaultSelectedKey='bar'
options={ [
{
key: 'bar2',
Expand Down