Create your Link in Bio for Bluesky
1import { defineConfig, devices } from "@playwright/test";
2
3export default defineConfig({
4 testDir: "./e2e",
5 outputDir: "./node_modules/.cache/playwright",
6 fullyParallel: true,
7 forbidOnly: !!process.env.CI,
8 retries: process.env.CI ? 2 : 0,
9 reporter: [
10 ["list", { printSteps: true }],
11 ["html", { open: "always" }],
12 ],
13 use: {
14 baseURL: "http://linkat.localhost:3000",
15 video: "on",
16 trace: "on",
17 },
18 projects: [
19 // https://playwright.dev/docs/auth
20 {
21 name: "setup",
22 testMatch: "global.setup.ts",
23 },
24 {
25 name: "safari",
26 use: {
27 ...devices["iPhone 15 Pro"],
28 locale: "ja-JP",
29 storageState: "./e2e/states/bob.test.json",
30 },
31 dependencies: ["setup"],
32 },
33 {
34 name: "chromium",
35 use: {
36 ...devices["Desktop Chrome"],
37 locale: "ja-JP",
38 storageState: "./e2e/states/alice.test.json",
39 },
40 dependencies: ["setup"],
41 },
42 ],
43 webServer: {
44 command: "pnpm start:local",
45 port: 3000,
46 stdout: "pipe",
47 reuseExistingServer: !process.env.CI,
48 },
49});