mirror of
https://github.com/ansible/awx.git
synced 2026-02-13 15:24:40 -03:30
Resolve most console errors in tests
This commit is contained in:
@@ -96,8 +96,8 @@ describe('<InventoryForm />', () => {
|
|||||||
expect(wrapper.find('VariablesField[label="Variables"]').length).toBe(1);
|
expect(wrapper.find('VariablesField[label="Variables"]').length).toBe(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should update form values', () => {
|
test('should update form values', async () => {
|
||||||
act(() => {
|
await act(async () => {
|
||||||
wrapper.find('OrganizationLookup').invoke('onBlur')();
|
wrapper.find('OrganizationLookup').invoke('onBlur')();
|
||||||
wrapper.find('OrganizationLookup').invoke('onChange')({
|
wrapper.find('OrganizationLookup').invoke('onChange')({
|
||||||
id: 3,
|
id: 3,
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ describe('<TeamForm />', () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
act(() => {
|
await act(async () => {
|
||||||
wrapper.find('input#team-name').simulate('change', {
|
wrapper.find('input#team-name').simulate('change', {
|
||||||
target: { value: 'new foo', name: 'name' },
|
target: { value: 'new foo', name: 'name' },
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user