From 218a3d333b687ef6156c38c17707dec2ea39f664 Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Thu, 23 Jun 2022 13:52:55 -0400 Subject: [PATCH] updates test --- .../LaunchButton/LaunchButton.test.js | 42 ------------------- 1 file changed, 42 deletions(-) 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 }) => ( -