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