Update playwright.config.ts
parent
dcd39c3f04
commit
a6cd173910
|
@ -1,4 +1,5 @@
|
||||||
import { devices, PlaywrightTestConfig } from "@playwright/test";
|
import type { PlaywrightTestConfig } from "@playwright/test";
|
||||||
|
import { devices } from "@playwright/test";
|
||||||
import dotEnv from "dotenv";
|
import dotEnv from "dotenv";
|
||||||
import * as os from "os";
|
import * as os from "os";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
|
@ -33,7 +34,7 @@ if (IS_EMBED_TEST) {
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: 1,
|
retries: 0,
|
||||||
workers: os.cpus().length,
|
workers: os.cpus().length,
|
||||||
timeout: 60_000,
|
timeout: 60_000,
|
||||||
maxFailures: headless ? 10 : undefined,
|
maxFailures: headless ? 10 : undefined,
|
||||||
|
|
Loading…
Reference in New Issue