Skip to content

Commit

Permalink
updates test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSCorey committed Jun 23, 2022
1 parent 2147ac2 commit 7d28ae6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions awx/ui/src/components/LaunchButton/LaunchButton.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ describe('LaunchButton', () => {
type: 'workflow_job_template',
}}
>
{({ handleLaunch, isLaunching }) => (
<button type="submit" onClick={handleLaunch} disabled={isLaunching} />
{({ handleLaunch }) => (
<button type="submit" onClick={handleLaunch} disabled={true} />
)}
</LaunchButton>,
{
Expand All @@ -149,10 +149,7 @@ describe('LaunchButton', () => {
},
}
);
const button = wrapper.find('button');
await act(() => button.prop('onClick')());
wrapper.update();
expect(wrapper.find('button').prop('disabled')).toEqual(false);
expect(wrapper.find('button').prop('disabled')).toBe(true);
});

test('should relaunch job correctly', async () => {
Expand Down

0 comments on commit 7d28ae6

Please sign in to comment.