mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
38 lines
794 B
TypeScript
38 lines
794 B
TypeScript
import path from "node:path";
|
|||
|
|
import { defineConfig, devices } from "@playwright/test";
|
||
|
|
|
||
|
|
const authFile = path.join(__dirname, "test-results", ".auth", "docker-user.json");
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: "./tests/e2e-docker",
|
||
|
|
timeout: 120_000,
|
||
|
|
expect: {
|
||
|
|
timeout: 30_000,
|
||
|
|
},
|
||
|
|
fullyParallel: false,
|
||
|
|
retries: 0,
|
||
|
|
workers: 1,
|
||
|
|
reporter: [["html", { open: "never" }], ["list"]],
|
||
|
|
use: {
|
||
|
|
baseURL: "http://localhost:1349",
|
||
|
|
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"],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
});
|
||
|
|
|
||
|
|
export { authFile };
|