test: Fix act warnings

This removes the `act()` warnings from the test output.
This commit is contained in:
regexowl 2024-07-17 11:24:44 +02:00 committed by Klara Simickova
parent 4fb37c187e
commit e2397b90d4

View file

@ -109,12 +109,13 @@ const checkRecommendationsEmptyState = async () => {
};
export const selectCustomRepo = async () => {
const user = userEvent.setup();
await clickBack();
const customRepoCheckbox = await screen.findByRole('checkbox', {
name: /select row 0/i,
});
await userEvent.click(customRepoCheckbox);
user.click(customRepoCheckbox);
await clickNext();
};