Fix tests for vitest 5

This commit is contained in:
Alejandro Celaya
2026-09-22 11:30:15 +02:00
parent bb4e0306e4
commit 72edf17be7
2 changed files with 4 additions and 4 deletions

View File

@@ -21,9 +21,9 @@ describe('<ImportServersBtn />', () => {
it('shows tooltip on button hover', async () => {
const { user, ...screen } = await setUp();
await expect.element(screen.getByText('You can create servers by importing a CSV file')).not.toBeInTheDocument();
await expect.element(screen.getByText(/You can create servers by importing a CSV file/)).not.toBeInTheDocument();
await user.hover(screen.getByRole('button'));
await expect.element(screen.getByText('You can create servers by importing a CSV file')).toBeInTheDocument();
await expect.element(screen.getByText(/You can create servers by importing a CSV file/)).toBeInTheDocument();
});
it.each([