From 9781c22c3f9ae80f7fb5a1b9ef4104f7714ef426 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Wed, 3 Apr 2019 13:16:29 -0400 Subject: [PATCH 1/2] update tests to match new ids --- __tests__/components/Lookup.test.jsx | 3 +++ .../pages/Organizations/components/OrganizationForm.test.jsx | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/__tests__/components/Lookup.test.jsx b/__tests__/components/Lookup.test.jsx index 2e990ec1b9..dd75e29e3c 100644 --- a/__tests__/components/Lookup.test.jsx +++ b/__tests__/components/Lookup.test.jsx @@ -49,6 +49,7 @@ describe('', () => { const wrapper = mount( ', () => { const wrapper = mount( ', () => { const wrapper = mount( ', () => { ).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'); From 8700f32ffc89f0144692553213644404488a24e6 Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Wed, 3 Apr 2019 13:29:25 -0400 Subject: [PATCH 2/2] fix tests eslintrc --- __tests__/.eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/.eslintrc b/__tests__/.eslintrc index a155c21b32..d16552bda4 100644 --- a/__tests__/.eslintrc +++ b/__tests__/.eslintrc @@ -1,5 +1,5 @@ { "rules": { - "react/jsx-pascal-case": "0" + "react/jsx-pascal-case": 0 } }