From 371cd6f48540867ed6b0626821a18f7eb0bf7b02 Mon Sep 17 00:00:00 2001 From: SnapOtter Date: Wed, 6 May 2026 21:57:34 +0800 Subject: [PATCH] chore: remove temporary Docker playwright config --- playwright.docker.config.ts | 44 ------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 playwright.docker.config.ts diff --git a/playwright.docker.config.ts b/playwright.docker.config.ts deleted file mode 100644 index 7c3cb85f..00000000 --- a/playwright.docker.config.ts +++ /dev/null @@ -1,44 +0,0 @@ -import path from "node:path"; -import { defineConfig, devices } from "@playwright/test"; - -const authFile = path.join(__dirname, ".playwright", ".auth", "analytics-user.json"); - -// Point raw-fetch tests (api.spec, security.spec, people.spec, rbac.spec) at -// the Docker container instead of the dev-server default (port 13490). -// Start the container with: SKIP_MUST_CHANGE_PASSWORD=true docker compose -f docker/docker-compose.yml up -d -const containerUrl = process.env.BASE_URL || "http://localhost:1349"; -process.env.API_URL ??= containerUrl; - -export default defineConfig({ - testDir: "./tests/e2e-docker", - timeout: 600_000, - expect: { - timeout: 60_000, - }, - fullyParallel: false, - retries: 0, - workers: 1, - reporter: [["html", { open: "never" }], ["list"]], - use: { - baseURL: containerUrl, - screenshot: "only-on-failure", - trace: "retain-on-failure", - }, - projects: [ - { - name: "setup", - testMatch: /auth\.setup\.ts/, - }, - { - name: "chromium", - use: { - ...devices["Desktop Chrome"], - storageState: authFile, - }, - dependencies: ["setup"], - }, - ], - // No webServer — tests run against the Docker container at localhost:1349 -}); - -export { authFile };