mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -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);
|
||||
});
|
||||
|
||||
test('should update form values', () => {
|
||||
act(() => {
|
||||
test('should update form values', async () => {
|
||||
await act(async () => {
|
||||
wrapper.find('OrganizationLookup').invoke('onBlur')();
|
||||
wrapper.find('OrganizationLookup').invoke('onChange')({
|
||||
id: 3,
|
||||
|
||||
@@ -44,7 +44,7 @@ describe('<TeamForm />', () => {
|
||||
);
|
||||
});
|
||||
|
||||
act(() => {
|
||||
await act(async () => {
|
||||
wrapper.find('input#team-name').simulate('change', {
|
||||
target: { value: 'new foo', name: 'name' },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user