Revert "CreateImageWizard: Disable vmware and installer images"

This reverts commit 8e4b4ff6d5.
This commit is contained in:
Sanne Raymaekers 2022-04-06 12:20:36 +02:00 committed by Tom Gundersen
parent 78123bff0e
commit ed12903519
2 changed files with 9 additions and 11 deletions

View file

@ -81,8 +81,7 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
isDisplayLarge />
</div>
</FormGroup>
{ /* Disabled until default user or user customization is present */
/* <FormGroup label={ <Text component={ TextVariants.small }>Private cloud</Text> } data-testid="target-private">
<FormGroup label={ <Text component={ TextVariants.small }>Private cloud</Text> } data-testid="target-private">
<Checkbox
label="VMWare"
isChecked={ environment.vsphere }
@ -91,7 +90,7 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
id="checkbox-vmware"
name="VMWare"
data-testid="checkbox-vmware" />
</FormGroup> */ }
</FormGroup>
<FormGroup label={ <Text component={ TextVariants.small }>Other</Text> } data-testid="target-other">
<Checkbox
label="Virtualization - Guest image"
@ -101,15 +100,14 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
id="checkbox-guest-image"
name="Virtualization guest image"
data-testid="checkbox-guest-image" />
{ /* Disabled until default user or user customization is present */
/* <Checkbox
<Checkbox
label="Bare metal - Installer"
isChecked={ environment['image-installer'] }
onChange={ () => handleSetEnvironment('image-installer') }
aria-label="Bare metal installer checkbox"
id="checkbox-image-installer"
name="Bare metal installer"
data-testid="checkbox-image-installer" /> */ }
data-testid="checkbox-image-installer" />
</FormGroup>
</FormGroup>
</>

View file

@ -1076,9 +1076,9 @@ describe('Click through all steps', () => {
screen.getByTestId('upload-aws').click();
screen.getByTestId('upload-azure').click();
screen.getByTestId('upload-google').click();
// screen.getByTestId('checkbox-vmware').click();
screen.getByTestId('checkbox-vmware').click();
screen.getByTestId('checkbox-guest-image').click();
// screen.getByTestId('checkbox-image-installer').click();
screen.getByTestId('checkbox-image-installer').click();
screen.getByRole('button', { name: /Next/ }).click();
userEvent.type(screen.getByTestId('aws-account-id'), '012345678901');
@ -1152,9 +1152,9 @@ describe('Click through all steps', () => {
findByText('Review the information and click "Create image" to create the image using the following criteria.');
await screen.findAllByText('Amazon Web Services');
await screen.findAllByText('Google Cloud Platform');
// await screen.findByText('VMWare');
await screen.findByText('VMWare');
await screen.findByText('Virtualization - Guest image');
// await screen.findByText('Bare metal - Installer');
await screen.findByText('Bare metal - Installer');
await screen.findByText('Register with Subscriptions and Red Hat Insights');
await screen.findByText('MyImageName');
@ -1418,7 +1418,7 @@ describe('Click through all steps', () => {
create.click();
// API request sent to backend
await expect(composeImage).toHaveBeenCalledTimes(4);
await expect(composeImage).toHaveBeenCalledTimes(6);
// returns back to the landing page
await waitFor(() => expect(history.location.pathname).toBe('/'));