From b0480da9bd3d80665430424334259ec45ef2d45c Mon Sep 17 00:00:00 2001 From: MariaAga Date: Mon, 8 Jul 2024 20:09:59 +0100 Subject: [PATCH] Fixes #37635 - HostsAndInputs.test.js missing an await --- .../__tests__/HostsAndInputs.test.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js b/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js index 01823ffdf..816661e93 100644 --- a/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js +++ b/webpack/JobWizard/steps/HostsAndInputs/__tests__/HostsAndInputs.test.js @@ -61,14 +61,20 @@ describe('Hosts', () => { await act(async () => { fireEvent.click(screen.getByText('Host groups')); }); - fireEvent.click(select('host groups')); + await act(async () => { + fireEvent.click(select('host groups')); + }); await act(async () => { fireEvent.click(screen.getByText('host_group1')); }); - fireEvent.click( - screen.getByText('Host groups', { selector: '.pf-c-select__toggle-text' }) - ); + await act(async () => { + fireEvent.click( + screen.getByText('Host groups', { + selector: '.pf-c-select__toggle-text', + }) + ); + }); await act(async () => { fireEvent.click(screen.getByText('Host collections')); });