Skip to content

Commit 24d32ac

Browse files
committedMay 2, 2019
chore: try vspec
1 parent d412384 commit 24d32ac

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
 

‎src/components/inputs/radio-input/radio-input.visualroute.js

+13
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,18 @@ export const component = () => (
149149
<RadioInput.Option value="oranges">{'Oranges'}</RadioInput.Option>
150150
</RadioInput.Group>
151151
</Spec>
152+
<Spec label="when errors and has focus">
153+
<RadioInput.Group
154+
name="fruits"
155+
value="apples"
156+
id="radio-id-1"
157+
onChange={() => {}}
158+
direction="stack"
159+
hasError={true}
160+
>
161+
<RadioInput.Option value="apples">{'Apples'}</RadioInput.Option>
162+
<RadioInput.Option value="oranges">{'Oranges'}</RadioInput.Option>
163+
</RadioInput.Group>
164+
</Spec>
152165
</Suite>
153166
);

‎src/components/inputs/radio-input/radio-input.visualspec.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ describe('Radio', () => {
77

88
it('Default', async () => {
99
await expect(page).toMatch(/Apples/);
10+
await page.focus('#radio-id-1-0');
1011
await percySnapshot(page, 'Radio');
1112
});
1213
});

0 commit comments

Comments
 (0)