chore(infra): update dev compose, add playwright e2e suite & assets

This commit is contained in:
ahp
2026-10-20 17:51:23 +03:30
parent f6ce2bd340
commit 3c5a32394d
23 changed files with 542 additions and 0 deletions
+31
View File
@@ -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"],
},
},
},
],
});