tests: Redo waiting for elements to be removed to resolve warning
gets rid of: Warning: You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one.
This commit is contained in:
parent
e106a32431
commit
49044c5746
1 changed files with 4 additions and 3 deletions
|
|
@ -258,8 +258,10 @@ describe('Step Registration', () => {
|
|||
.getByLabelText('Embed an activation key and register systems on first boot')
|
||||
.click();
|
||||
|
||||
const p1 = waitForElementToBeRemoved(() => screen.queryByTestId('organization-id'));
|
||||
const p2 = waitForElementToBeRemoved(() => screen.queryByTestId('subscription-activation'));
|
||||
const p1 = waitForElementToBeRemoved(() => [
|
||||
screen.getByTestId('organization-id'),
|
||||
screen.getByTestId('subscription-activation'),
|
||||
]);
|
||||
|
||||
// then click the first radio button which should remove any input fields
|
||||
screen
|
||||
|
|
@ -267,7 +269,6 @@ describe('Step Registration', () => {
|
|||
.click();
|
||||
|
||||
await p1;
|
||||
await p2;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue