-
|
I use vitest 4.0.7, in browser mode, with the playwright provider, in chromium headless. If I write a test such as test('bla bla', async () => {
await expect.element(page.getByLabelText('There is no such label')).toBeVisible();
});it takes a looooong time to fail (around 30 seconds). Is there a way around that? It's very frustrating to wait for 30 seconds before being able to know why a test is failing. I tried customizing the vitest configuration that way (and can confirm that it is loaded), but it doesn't change anything: import { defineConfig } from 'vitest/config';
console.log('HELLO');
export default defineConfig({
test: {
expect: {
poll: {
interval: 20,
timeout: 1000
}
},
testTimeout: 1000,
hookTimeout: 1000
}
}); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
How can it work if it doesn't have the browser configuration? 🤔 Generally speaking, the timeout depends on the test timeout (how much time is left - 100ms) |
Beta Was this translation helpful? Give feedback.
It was indeed the Angular CLI that didn't merge the config correctly.
Thank you @sheremet-va and sorry for the noise.