Update playwright.config.ts

fixes/tests
zomars 2023-02-28 16:43:44 -07:00
parent dcd39c3f04
commit a6cd173910
1 changed files with 3 additions and 2 deletions

View File

@ -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,