mirror of
https://github.com/ansible/awx.git
synced 2026-02-13 12:24:49 -03:30
Always resolve launching status
This commit is contained in:
@@ -78,6 +78,8 @@ function LaunchButton({ resource, children, history }) {
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(err);
|
setError(err);
|
||||||
|
} finally {
|
||||||
|
setIsLaunching(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -155,8 +155,7 @@ describe('LaunchButton', () => {
|
|||||||
const button = wrapper.find('button');
|
const button = wrapper.find('button');
|
||||||
await act(() => button.prop('onClick')());
|
await act(() => button.prop('onClick')());
|
||||||
wrapper.update();
|
wrapper.update();
|
||||||
|
expect(wrapper.find('button').prop('disabled')).toEqual(false);
|
||||||
expect(wrapper.find('button').prop('disabled')).toEqual(true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should relaunch job correctly', async () => {
|
test('should relaunch job correctly', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user