Skip to content

Commit

Permalink
id for test
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed May 5, 2018
1 parent 17a827e commit db5a1d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/form/switch/__snapshots__/switch.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`EuiSwitch is rendered 1`] = `
aria-label="aria-label"
class="euiSwitch__input"
data-test-subj="test subject string"
id="u9dcpoo5"
id="test"
type="checkbox"
/>
<span
Expand Down Expand Up @@ -61,7 +61,7 @@ exports[`EuiSwitch is rendered 1`] = `
</span>
<label
class="euiSwitch__label"
for="u9dcpoo5"
for="test"
/>
</div>
`;
2 changes: 1 addition & 1 deletion src/components/form/switch/switch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { EuiSwitch } from './switch';
describe('EuiSwitch', () => {
test('is rendered', () => {
const component = render(
<EuiSwitch {...requiredProps} />
<EuiSwitch id="test" {...requiredProps} />
);

expect(component)
Expand Down

0 comments on commit db5a1d4

Please sign in to comment.