test: Remove typing delay for locale test
`Step Locale - unknown option is disabled` was quite flaky recently. Removing typing delay from the userEvent actions should solve the issue.
This commit is contained in:
parent
b8dc0e60c9
commit
42d96edd00
1 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ const selectLanguages = async () => {
|
|||
};
|
||||
|
||||
const searchForKeyboard = async (keyboard: string) => {
|
||||
const user = userEvent.setup();
|
||||
const user = userEvent.setup({ delay: null });
|
||||
const keyboardDropdown = await screen.findByPlaceholderText(
|
||||
/select a keyboard/i
|
||||
);
|
||||
|
|
@ -90,7 +90,7 @@ const searchForKeyboard = async (keyboard: string) => {
|
|||
};
|
||||
|
||||
const selectKeyboard = async () => {
|
||||
const user = userEvent.setup();
|
||||
const user = userEvent.setup({ delay: null });
|
||||
const usKeyboard = await screen.findByRole('option', { name: 'us' });
|
||||
await waitFor(() => user.click(usKeyboard));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue