Wizard: add compliance step to the wizard

The title is changed depending on the flag, to make it easier to change
the IQE tests.
This commit is contained in:
Sanne Raymaekers 2024-09-11 12:16:52 +02:00 committed by Klara Simickova
parent e43357bf55
commit 0908cd2ae9

View file

@ -150,7 +150,10 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
// =========================TO REMOVE=======================
// Feature flags
const isFirstBootEnabled = useFlag('image-builder.firstboot.enabled');
const complianceEnabled = useFlag('image-builder.compliance.enabled');
// IMPORTANT: Ensure the wizard starts with a fresh initial state
useEffect(() => {
dispatch(initializeWizard());
@ -354,7 +357,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
<RegistrationStep />
</WizardStep>,
<WizardStep
name="OpenSCAP"
name={complianceEnabled ? 'Compliance' : 'OpenSCAP'}
id="step-oscap"
key="step-oscap"
footer={