mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Merge pull request #150 from keithjgrant/test-fix
update tests to match new ids
This commit is contained in:
commit
04bd4d973a
@ -1,5 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
"react/jsx-pascal-case": "0"
|
||||
"react/jsx-pascal-case": 0
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,6 +49,7 @@ describe('<Lookup />', () => {
|
||||
const wrapper = mount(
|
||||
<I18nProvider>
|
||||
<Lookup
|
||||
id="search"
|
||||
lookup_header="Foo Bar"
|
||||
name="fooBar"
|
||||
value={mockSelected}
|
||||
@ -76,6 +77,7 @@ describe('<Lookup />', () => {
|
||||
const wrapper = mount(
|
||||
<I18nProvider>
|
||||
<Lookup
|
||||
id="search"
|
||||
lookup_header="Foo Bar"
|
||||
name="fooBar"
|
||||
value={mockSelected}
|
||||
@ -100,6 +102,7 @@ describe('<Lookup />', () => {
|
||||
const wrapper = mount(
|
||||
<I18nProvider>
|
||||
<Lookup
|
||||
id="search"
|
||||
lookup_header="Foo Bar"
|
||||
name="fooBar"
|
||||
value={mockData}
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user