Update playwright.config.ts
parent
a231945842
commit
a1f6738cf1
|
@ -1,4 +1,4 @@
|
||||||
import { PlaywrightTestConfig, devices } from "@playwright/test";
|
import { devices, PlaywrightTestConfig } from "@playwright/test";
|
||||||
import { addAliases } from "module-alias";
|
import { addAliases } from "module-alias";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ addAliases({
|
||||||
const outputDir = path.join(__dirname, "..", "..", "test-results");
|
const outputDir = path.join(__dirname, "..", "..", "test-results");
|
||||||
const testDir = path.join(__dirname, "..", "..", "apps/web/playwright");
|
const testDir = path.join(__dirname, "..", "..", "apps/web/playwright");
|
||||||
|
|
||||||
|
const DEFAULT_NAVIGATION_TIMEOUT = 5000;
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: 1,
|
retries: 1,
|
||||||
|
@ -45,7 +47,11 @@ const config: PlaywrightTestConfig = {
|
||||||
{
|
{
|
||||||
name: "chromium",
|
name: "chromium",
|
||||||
testDir,
|
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",
|
name: "firefox",
|
||||||
|
|
Loading…
Reference in New Issue