enso/app/ide-desktop/client/playwright.config.ts
Adam Obuchowicz 86c59469d0
Increase timeout and vite version (#11492)
1. The electron test hit timeouts from time to time, probably because of slow response from the engine: increased timeout.
2. Unify vite version across packages.
2024-11-08 08:43:02 +00:00

19 lines
423 B
TypeScript

/** @file Playwright browser testing configuration. */
import { defineConfig } from '@playwright/test'
export default defineConfig({
testDir: './tests',
forbidOnly: !!process.env.CI,
workers: 1,
timeout: 120000,
reportSlowTests: { max: 5, threshold: 60000 },
globalSetup: './tests/setup.ts',
expect: {
timeout: 5000,
toHaveScreenshot: { threshold: 0 },
},
use: {
actionTimeout: 5000,
},
})