Files
memento-frontend/playwright.memento-api.config.ts

22 lines
674 B
TypeScript

import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./tests/e2e",
testMatch: "memento-api-mode.spec.ts",
outputDir: "./artifacts/tests/e2e-api/results",
reporter: [["list"]],
use: {
...devices["Desktop Chrome"],
baseURL: "http://127.0.0.1:4176",
trace: "retain-on-failure",
screenshot: "only-on-failure",
},
webServer: {
command:
"APP_PROFILE=development RUNTIME_API_BASE_URL=http://127.0.0.1:4176/ corepack pnpm exec vite --host 127.0.0.1 --port 4176 --strictPort",
url: "http://127.0.0.1:4176",
reuseExistingServer: false,
},
projects: [{ name: "chromium-api-mode" }],
});