CreateImageWizard: Add CentOS acknowledgement

Adds a PF4 info <Alert> that informs users that CentOS is intended only
for development of RHEL-Next if CentOS is the selected distro in the
Image Output step.
This commit is contained in:
lucasgarfield 2022-06-28 10:39:21 +02:00 committed by Sanne Raymaekers
parent f6a98d2dca
commit 489d6a334f
4 changed files with 77 additions and 0 deletions

View file

@ -324,6 +324,29 @@ describe('Step Image output', () => {
userEvent.click(releaseMenu);
});
test('CentOS acknowledgement appears', async () => {
setUp();
const releaseMenu = screen.getByRole('button', {
name: /options menu/i,
});
userEvent.click(releaseMenu);
const showOptionsButton = screen.getByRole('button', {
name: 'Show options for further development of RHEL',
});
userEvent.click(showOptionsButton);
const centOSButton = screen.getByRole('option', {
name: 'CentOS Stream 9',
});
userEvent.click(centOSButton);
await screen.findByText(
'CentOS Stream builds may only be used for the development of RHEL-Next.'
);
});
});
describe('Step Upload to AWS', () => {