Skip to content

Commit

Permalink
Fix Radiobutton Redux Form tests (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis authored Nov 15, 2021
1 parent 8ac1bf3 commit f29aa5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/RadioButton/tests/RadioButton-ReduxForm-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ describe('RadioButton with Redux Form', () => {
output = event.target.checked;
}}
type="radio"
validate={value => (value === 'green' ? 'Not ready to eat' : undefined)}
value="green"
warn={value => (value === 'ripe' ? 'Warning: may be mushy' : undefined)}
/>
</div>
<div id="radio-button-2">
Expand All @@ -48,8 +50,10 @@ describe('RadioButton with Redux Form', () => {

describe('clicking the label', () => {
beforeEach(async () => {
await radioButton1.focus();
await radioButton1.click();
await radioButton1.blur();
await radioButton2.focus();
});

it('toggles the value', () => expect(output).to.be.true);
Expand Down

0 comments on commit f29aa5f

Please sign in to comment.