update tests to match new ids

This commit is contained in:
Keith Grant
2019-04-03 13:16:29 -04:00
parent 99b2350778
commit 9781c22c3f
2 changed files with 5 additions and 2 deletions

View File

@@ -121,11 +121,11 @@ describe('<OrganizationForm />', () => {
).find('OrganizationForm');
const form = wrapper.find('Formik');
wrapper.find('input#edit-org-form-name').simulate('change', {
wrapper.find('input#org-name').simulate('change', {
target: { value: 'new foo', name: 'name' }
});
expect(form.state('values').name).toEqual('new foo');
wrapper.find('input#edit-org-form-description').simulate('change', {
wrapper.find('input#org-description').simulate('change', {
target: { value: 'new bar', name: 'description' }
});
expect(form.state('values').description).toEqual('new bar');