mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-04 23:18:01 +00:00
5cb8020ab9
*feat: timer blink *feat: blackout --------- Co-authored-by: Fabian Posenau <fabian@fphome.de> Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com>
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
import type { PlaywrightTestConfig } from '@playwright/test';
|
|
import { devices } from '@playwright/test';
|
|
|
|
/**
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
*/
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: './e2e/tests',
|
|
timeout: 60 * 1000,
|
|
expect: {
|
|
timeout: 5000
|
|
},
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: 1,
|
|
reporter: 'html',
|
|
webServer: {
|
|
command: "turbo run dev:test",
|
|
port: 4001,
|
|
reuseExistingServer: false,
|
|
timeout: 60 * 1000,
|
|
},
|
|
use: {
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure',
|
|
viewport: { width: 1920, height: 1080 },
|
|
actionTimeout: 5000,
|
|
baseURL: 'http://localhost:4001',
|
|
ignoreHTTPSErrors: true,
|
|
trace: 'on-first-retry',
|
|
launchOptions: {
|
|
slowMo: process.env.CI ? undefined : 250
|
|
}
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
},
|
|
},
|
|
|
|
{
|
|
name: 'webkit',
|
|
testMatch: /.*.spec.mac.ts/,
|
|
use: {
|
|
...devices['Desktop Safari'],
|
|
},
|
|
},
|
|
],
|
|
outputDir: 'test-results/',
|
|
};
|
|
|
|
export default config;
|