File size: 877 Bytes
8fe4e41
1cbdba3
 
8fe4e41
4114106
1cbdba3
 
 
e621a02
 
1cbdba3
8fe4e41
1cbdba3
 
8fe4e41
e621a02
8fe4e41
1cbdba3
 
 
8fe4e41
 
1cbdba3
 
 
e621a02
dfe2d8f
0715aa0
1cbdba3
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { defineConfig, devices } from "@playwright/test";

export default defineConfig({
  testDir: "./tests",
  timeout: process.env.CI ? 30000 : 10000,
  fullyParallel: false,
  /* Fail the build on CI if you accidentally left test.only in the source code. */
  forbidOnly: !!process.env.CI,
  retries: 0,
  maxFailures: 3,
  workers: 1,
  reporter: process.env.CI ? [["github"], ["html"]] : "html",
  use: {
    /* Base URL to use in actions like `await page.goto('/')`. */
    baseURL: "http://127.0.0.1:8000",
    trace: "on",
    testIdAttribute: "data-nodeid", // Useful for easily selecting nodes using getByTestId
  },
  projects: [
    {
      name: "chromium",
      use: { ...devices["Desktop Chrome"] },
    },
  ],
  webServer: {
    command: "cd ../../examples && LYNXKITE_SUPPRESS_OP_ERRORS=1 lynxkite",
    port: 8000,
    reuseExistingServer: false,
  },
});