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:
regexowl 2025-07-23 15:09:40 +02:00 committed by Gianluca Zuccarelli
parent b8dc0e60c9
commit 42d96edd00

View file

@ -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));
};