mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
V2 e2e (#320)
* chore: cleanup handling of a bad read * chore: configure e2e testing * chore: version bump
This commit is contained in:
+8
-19
@@ -1,12 +1,6 @@
|
||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||
import { devices } from '@playwright/test';
|
||||
|
||||
/**
|
||||
* Read environment variables from file.
|
||||
* https://github.com/motdotla/dotenv
|
||||
*/
|
||||
// require('dotenv').config();
|
||||
|
||||
/**
|
||||
* See https://playwright.dev/docs/test-configuration.
|
||||
*/
|
||||
@@ -19,8 +13,14 @@ const config: PlaywrightTestConfig = {
|
||||
fullyParallel: true,
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
workers: 1,
|
||||
reporter: 'html',
|
||||
webServer: {
|
||||
command: "turbo run dev:test",
|
||||
port: 4001,
|
||||
reuseExistingServer: false,
|
||||
timeout: 60 * 1000,
|
||||
},
|
||||
use: {
|
||||
screenshot: 'only-on-failure',
|
||||
viewport: { width: 1920, height: 1080 },
|
||||
@@ -29,9 +29,6 @@ const config: PlaywrightTestConfig = {
|
||||
ignoreHTTPSErrors: true,
|
||||
trace: 'on-first-retry',
|
||||
},
|
||||
webServer: {
|
||||
command: "pnpm dev:server"
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
@@ -40,17 +37,9 @@ const config: PlaywrightTestConfig = {
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: 'firefox',
|
||||
testMatch: /.*.spec.all.ts/,
|
||||
use: {
|
||||
...devices['Desktop Firefox'],
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: 'webkit',
|
||||
testMatch: /.*.spec.ts/,
|
||||
testMatch: /.*.spec.mac.ts/,
|
||||
use: {
|
||||
...devices['Desktop Safari'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user