diff --git a/awx/ui/src/components/LaunchButton/LaunchButton.test.js b/awx/ui/src/components/LaunchButton/LaunchButton.test.js index d181d915a2..61ea5fd923 100644 --- a/awx/ui/src/components/LaunchButton/LaunchButton.test.js +++ b/awx/ui/src/components/LaunchButton/LaunchButton.test.js @@ -113,48 +113,6 @@ describe('LaunchButton', () => { expect(history.location.pathname).toEqual('/jobs/9000/output'); }); - test('should disable button to prevent duplicate clicks', async () => { - WorkflowJobTemplatesAPI.readLaunch.mockResolvedValue({ - data: { - can_start_without_user_input: true, - }, - }); - const history = createMemoryHistory({ - initialEntries: ['/jobs/9000'], - }); - WorkflowJobTemplatesAPI.launch.mockImplementation(async () => { - // return asynchronously so isLaunching isn't set back to false in the - // same tick - await new Promise((resolve) => setTimeout(resolve, 10)); - return { - data: { - id: 9000, - }, - }; - }); - const wrapper = mountWithContexts( - - {({ handleLaunch, isLaunching }) => ( -