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:
parent
fa7b0ca553
commit
787b0180de
2 changed files with 8 additions and 4 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue