diff --git a/lib/RadioButton/tests/RadioButton-ReduxForm-test.js b/lib/RadioButton/tests/RadioButton-ReduxForm-test.js index 754cb3e4d..0b20e6f9d 100644 --- a/lib/RadioButton/tests/RadioButton-ReduxForm-test.js +++ b/lib/RadioButton/tests/RadioButton-ReduxForm-test.js @@ -3,7 +3,7 @@ import { describe, beforeEach, it } from 'mocha'; import { expect } from 'chai'; import { Field } from 'redux-form'; -import { RadioButton as Interactor, converge } from '@folio/stripes-testing'; +import { RadioButton as Interactor } from '@folio/stripes-testing'; import { mountWithContext } from '../../../tests/helpers'; import TestForm from '../../../tests/TestForm'; @@ -25,10 +25,8 @@ describe('RadioButton with Redux Form', () => { onChange={(event) => { output = event.target.checked; }} - validate={value => (value === 'green' ? 'Not ready to eat' : undefined)} type="radio" value="green" - warn={value => (value === 'ripe' ? 'Warning: may be mushy' : undefined)} />
@@ -50,17 +48,15 @@ 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); it('displays the input as checked', () => radioButton1.is({ checked: true })); - it('displays the error text', () => converge(() => radioButton1.has({ feedbackText: 'Not ready to eat' }))); + it('displays the error text', () => radioButton1.has({ feedbackText: 'Not ready to eat' })); it('applies an error class', () => radioButton1.has({ hasError: true }));