CreateImageWizard: fix validation for activation keys

The validators are passed values by the useFieldApi hook. Adding this to
the activation key component allows the `required` validation to work.
This commit is contained in:
Jacob Kozol 2022-04-21 16:24:37 +02:00 committed by jkozol
parent fa7b0ca553
commit 787b0180de
2 changed files with 8 additions and 4 deletions

View file

@ -1536,6 +1536,9 @@ describe('Keyboard accessibility', () => {
await screen.findByRole('textbox', {
name: 'Select activation key'
});
// skip registration
const registerLaterRadio = screen.getByLabelText('Register later');
userEvent.click(registerLaterRadio);
clickNext();
@ -1563,7 +1566,6 @@ describe('Keyboard accessibility', () => {
// Review
const targetEnvironmentTab = screen.getByTestId('tab-target');
expect(targetEnvironmentTab).toHaveFocus();
await screen.findByTestId('organization-id');
});
test('pressing Esc closes the wizard', async () => {