test: Update tests

This updates the tests to reflect changes made to the new registration step.
This commit is contained in:
regexowl 2024-07-31 13:28:57 +02:00 committed by Ondřej Ezr
parent 2caddb66c7
commit 0dea61bf00
11 changed files with 87 additions and 209 deletions

View file

@ -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

View file

@ -54,7 +54,6 @@ const deselectAzureAndSelectGuestImage = async () => {
name: /virtualization guest image checkbox/i,
});
await waitFor(async () => user.click(guestImageCheckbox));
await clickNext();
};
const selectSource = async () => {

View file

@ -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) => {