test: Update tests
This updates the tests to reflect changes made to the new registration step.
This commit is contained in:
parent
2caddb66c7
commit
0dea61bf00
11 changed files with 87 additions and 209 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Router as RemixRouter } from '@remix-run/router/dist/router';
|
||||
import type { Router as RemixRouter } from '@remix-run/router';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { userEvent } from '@testing-library/user-event';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
|
|
@ -70,7 +70,6 @@ const deselectAwsAndSelectGuestImage = async () => {
|
|||
name: /virtualization guest image checkbox/i,
|
||||
});
|
||||
await waitFor(async () => user.click(guestImageCheckbox));
|
||||
await clickNext();
|
||||
};
|
||||
|
||||
const selectSource = async () => {
|
||||
|
|
@ -251,13 +250,6 @@ describe('Step Upload to AWS', () => {
|
|||
});
|
||||
user.click(source);
|
||||
|
||||
await clickNext();
|
||||
|
||||
// registration
|
||||
await screen.findByRole('textbox', {
|
||||
name: 'Select activation key',
|
||||
});
|
||||
|
||||
// click through to review step
|
||||
await goToReview();
|
||||
// informational modal pops up in the first test only as it's tied
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ const deselectAzureAndSelectGuestImage = async () => {
|
|||
name: /virtualization guest image checkbox/i,
|
||||
});
|
||||
await waitFor(async () => user.click(guestImageCheckbox));
|
||||
await clickNext();
|
||||
};
|
||||
|
||||
const selectSource = async () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import { Router as RemixRouter } from '@remix-run/router/dist/router';
|
||||
import type { Router as RemixRouter } from '@remix-run/router';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { userEvent } from '@testing-library/user-event';
|
||||
|
||||
|
|
@ -79,7 +79,6 @@ const deselectGcpAndSelectGuestImage = async () => {
|
|||
name: /virtualization guest image checkbox/i,
|
||||
});
|
||||
await waitFor(async () => user.click(guestImageCheckbox));
|
||||
await clickNext();
|
||||
};
|
||||
|
||||
const selectGoogleAccount = async (optionId: string) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue