chore(infra): update dev compose, add playwright e2e suite & assets
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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"],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user