test: Wait for rendering to finish in keyboard accessability test
Waits for components to finish rendering before continuing. This gets rid of the test warnings.
This commit is contained in:
parent
bbd3623414
commit
1b471b762d
1 changed files with 5 additions and 0 deletions
|
|
@ -1491,6 +1491,10 @@ describe('Keyboard accessibility', () => {
|
|||
name: /register and connect image instances with red hat/i
|
||||
});
|
||||
expect(registerRadio).toHaveFocus();
|
||||
await screen.findByRole('textbox', {
|
||||
name: 'Select activation key'
|
||||
});
|
||||
|
||||
clickNext();
|
||||
|
||||
// File system configuration
|
||||
|
|
@ -1512,6 +1516,7 @@ 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