Fix failing tests

DDF requires a bit altered tests to click trough the wizard so the tests won't fail
This commit is contained in:
Karel Hala 2021-06-09 20:15:49 +02:00 committed by Sanne Raymaekers
parent 9bf30059f6
commit a67e014dbe
8 changed files with 151 additions and 102 deletions

View file

@ -42,7 +42,16 @@ const ReviewStep = () => {
<Text component={ TextVariants.h3 }>Registration</Text>
<TextList component={ TextListVariants.dl } data-testid='review-image-registration'>
<TextListItem component={ TextListItemVariants.dt }>Subscription</TextListItem>
{registerValues?.[getState()?.values?.['register-system']]}
<TextListItem component={ TextListItemVariants.dd }>
{getState()?.values?.['register-system'] === 'subscribe-now-radio' ?
'Register the system on first boot' :
registerValues?.[getState()?.values?.['register-system']?.title]
}
</TextListItem>
<TextListItem component={ TextListItemVariants.dt }>Activation key</TextListItem>
<TextListItem component={ TextListItemVariants.dd } type="password">
{'*'.repeat(getState()?.values?.['subscription-activation']?.length)}
</TextListItem>
</TextList>
</TextContent>
);