32 lines
897 B
TypeScript
32 lines
897 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: "./e2e",
|
||
|
|
timeout: 30_000,
|
||
|
|
retries: 0,
|
||
|
|
workers: 1,
|
||
|
|
globalSetup: "./e2e/global-setup.ts",
|
||
|
|
reporter: [["list"], ["html", { open: "never", outputFolder: "playwright-report" }]],
|
||
|
|
use: {
|
||
|
|
baseURL: "https://localhost",
|
||
|
|
ignoreHTTPSErrors: true,
|
||
|
|
screenshot: "only-on-failure",
|
||
|
|
video: "off",
|
||
|
|
trace: "retain-on-failure",
|
||
|
|
locale: "fa-IR",
|
||
|
|
},
|
||
|
|
projects: [
|
||
|
|
{
|
||
|
|
name: "chromium",
|
||
|
|
use: {
|
||
|
|
browserName: "chromium",
|
||
|
|
viewport: { width: 1280, height: 800 },
|
||
|
|
launchOptions: {
|
||
|
|
executablePath: `${process.env.HOME}/.cache/ms-playwright/chromium_headless_shell-1234/chrome-headless-shell-linux64/chrome-headless-shell`,
|
||
|
|
args: ["--no-sandbox", "--disable-dev-shm-usage", "--disable-http2"],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
},
|
||
|
|
],
|
||
|
|
});
|