21 lines
626 B
TypeScript
21 lines
626 B
TypeScript
import { defineConfig } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./src/tests",
|
|
testMatch: "public-*.spec.ts",
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
updateSnapshots: "none",
|
|
use: {
|
|
baseURL: process.env["PLAYWRIGHT_BASE_URL"] ?? "http://127.0.0.1:3000",
|
|
locale: "en-GB",
|
|
reducedMotion: "reduce",
|
|
screenshot: "off",
|
|
trace: "off",
|
|
},
|
|
projects: [
|
|
{ name: "phone", use: { viewport: { width: 390, height: 844 } } },
|
|
{ name: "tablet", use: { viewport: { width: 768, height: 1024 } } },
|
|
{ name: "desktop", use: { viewport: { width: 1440, height: 900 } } },
|
|
],
|
|
});
|