File size: 969 Bytes
7ed5764
aa9111f
 
7ed5764
dff86b8
aa9111f
 
 
 
 
7ed5764
aa9111f
 
7ed5764
aa9111f
7ed5764
 
aa9111f
 
 
7ed5764
 
aa9111f
 
 
7b14a6f
7ed5764
dff86b8
aa9111f
 
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: 30000,
  fullyParallel: false,
  /* Fail the build on CI if you accidentally left test.only in the source code. */
  forbidOnly: !!process.env.CI,
  retries: process.env.CI ? 1 : 0,
  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",
    /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
    trace: "on-first-retry",
    testIdAttribute: "data-nodeid", // Useful for easily selecting nodes using getByTestId
  },
  projects: [
    {
      name: "chromium",
      use: { ...devices["Desktop Chrome"] },
    },
  ],
  webServer: {
    command: "cd ../.. && LYNXKITE_DATA=examples lynxkite",
    url: "http://127.0.0.1:8000",
    reuseExistingServer: false,
  },
});