CreateImageWizard: update review page

The review page now uses more patternfly components and has been split
up a little so it is easier to add review fields for additional target
environments.
This commit is contained in:
Jacob Kozol 2021-02-24 23:19:24 +01:00 committed by Sanne Raymaekers
parent 60589dd2c1
commit 43e87a184d
4 changed files with 74 additions and 88 deletions

View file

@ -353,10 +353,10 @@ describe('Click through all steps', () => {
next.click();
// review
const imageOutput = screen.getByTestId('review-image-output');
await screen.
findByText('Review the information and click Create image to create the image using the following criteria.');
await within(imageOutput).findByText('Amazon Web Services');
const main = screen.getByRole('main', { name: 'Create image' });
within(main).getByText('Amazon Web Services');
await screen.findByText('Register the system on first boot');
// mock the backend API
@ -400,8 +400,8 @@ describe('Click through all steps', () => {
await screen.
findByText('Review the information and click Create image to create the image using the following criteria.');
const imageOutput = screen.getByTestId('review-image-output');
await within(imageOutput).findByText('Amazon Web Services');
const main = screen.getByRole('main', { name: 'Create image' });
within(main).getByText('Amazon Web Services');
await screen.findByText('Register the system on first boot');
const errorMessages = await screen.findAllByText('A value is required');
@ -437,8 +437,8 @@ describe('Click through all steps', () => {
await screen.
findByText('Review the information and click Create image to create the image using the following criteria.');
const imageOutput = screen.getByTestId('review-image-output');
await within(imageOutput).findByText('Amazon Web Services');
const main = screen.getByRole('main', { name: 'Create image' });
within(main).getByText('Amazon Web Services');
await screen.findByText('Register the system on first boot');
const errorMessages = await screen.findAllByText('A value is required');