Add more tests for Create Image Wizard

- sanity validation of each of the 4 steps
- click through buttons Next/Back/Cancel

Notes:

- add data-testid attribute for the release select field b/c
there's no better way to query it
- add @testing-library/jest-dom for additional asserts
This commit is contained in:
Aleksandar Todorov 2020-11-05 13:19:41 +02:00 committed by Sanne Raymaekers
parent 7c78b5b029
commit afe02e0f2e
3 changed files with 163 additions and 10 deletions

View file

@ -32,7 +32,7 @@ const ReleaseComponent = (props) => {
<Form isHorizontal>
<FormGroup label="Release" fieldId="release-select">
<FormSelect value={ props.value } onChange={ value => props.setRelease(value) }
aria-label="Select release input" id="release-select">
aria-label="Select release input" id="release-select" data-testid="release-select">
{ options.map(option => <FormSelectOption key={ option.value } value={ option.value } label={ option.label }/>) }
</FormSelect>
</FormGroup>