CreateImageWizard: enable OpenSCAP for on-prem

SSIA
This commit is contained in:
Gianluca Zuccarelli 2025-03-10 10:07:54 +00:00 committed by Lucas Garfield
parent c7cd9e8de3
commit 9d883a8dfc
3 changed files with 5 additions and 6 deletions

View file

@ -23,10 +23,11 @@ test.describe.serial('test', () => {
});
await page.getByTestId('automatically-register-checkbox').uncheck();
await frame.getByRole('button', { name: 'Next', exact: true }).click();
await frame.getByRole('heading', { name: 'Compliance' });
await frame.getByRole('button', { name: 'Next', exact: true }).click();
}
await frame.getByRole('heading', { name: 'Compliance' });
await frame.getByRole('button', { name: 'Next', exact: true }).click();
await frame.getByRole('heading', { name: 'File system configuration' });
await frame.getByRole('button', { name: 'Next', exact: true }).click();

View file

@ -406,9 +406,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
name={complianceEnabled ? 'Compliance' : 'OpenSCAP'}
id="step-oscap"
key="step-oscap"
isHidden={
distribution === RHEL_10_BETA || !!process.env.IS_ON_PREMISE
}
isHidden={distribution === RHEL_10_BETA}
navItem={customStatusNavItem}
footer={
<CustomWizardFooter disableNext={false} optional={true} />

View file

@ -31,8 +31,8 @@ const goToHostnameStep = async () => {
if (!process.env.IS_ON_PREMISE) {
await clickNext(); // Registration
await clickRegisterLater();
await clickNext(); // OpenSCAP
}
await clickNext(); // OpenSCAP
await clickNext(); // File system configuration
if (!process.env.IS_ON_PREMISE) {
await clickNext(); // Snapshots