test: able to recreate image
Verify that clicking recreate will pass the expected compose request to the CreateImageWizard. Also, verify that if passed a composeRequest and initialStep of 'review', the wizard will display the review page with all info filled.
This commit is contained in:
parent
20c1537d8e
commit
4b9e98bff3
2 changed files with 53 additions and 0 deletions
|
|
@ -998,6 +998,33 @@ describe('Step Review', () => {
|
|||
name: 'File system configuration'
|
||||
});
|
||||
});
|
||||
|
||||
test('can pass location to recreate on review step', () => {
|
||||
const initialLocation = {
|
||||
state: {
|
||||
composeRequest: {
|
||||
distribution: RHEL_8,
|
||||
image_name: 'MyImageName',
|
||||
image_requests: [{
|
||||
architecture: 'x86_64',
|
||||
image_type: 'guest-image',
|
||||
upload_request: {
|
||||
type: 'aws.s3',
|
||||
options: {}
|
||||
},
|
||||
}],
|
||||
customizations: {}
|
||||
},
|
||||
initialStep: 'review'
|
||||
}
|
||||
};
|
||||
history = renderWithReduxRouter(<CreateImageWizard />, {}, initialLocation).history;
|
||||
screen.getByText('Review the information and click "Create image" to create the image using the following criteria.');
|
||||
screen.getByText('Virtualization - Guest image');
|
||||
screen.getByText('Register the system later');
|
||||
screen.getByText('MyImageName');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Click through all steps', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue