Update playwright.config.ts

This commit is contained in:
zomars 2022-05-10 21:51:24 -06:00
parent a231945842
commit a1f6738cf1

View File

@ -1,4 +1,4 @@
import { PlaywrightTestConfig, devices } from "@playwright/test";
import { devices, PlaywrightTestConfig } from "@playwright/test";
import { addAliases } from "module-alias";
import * as path from "path";
@ -17,6 +17,8 @@ addAliases({
const outputDir = path.join(__dirname, "..", "..", "test-results");
const testDir = path.join(__dirname, "..", "..", "apps/web/playwright");
const DEFAULT_NAVIGATION_TIMEOUT = 5000;
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: 1,
@ -45,7 +47,11 @@ const config: PlaywrightTestConfig = {
{
name: "chromium",
testDir,
use: { ...devices["Desktop Chrome"] },
use: {
...devices["Desktop Chrome"],
/** If navigation takes more than this, then something's wrong, let's fail fast. */
navigationTimeout: DEFAULT_NAVIGATION_TIMEOUT,
},
},
/* {
name: "firefox",