Spaces:
Running
Running
Less patient frontend tests.
Browse files
lynxkite-app/web/playwright.config.ts
CHANGED
|
@@ -2,19 +2,18 @@ import { defineConfig, devices } from "@playwright/test";
|
|
| 2 |
|
| 3 |
export default defineConfig({
|
| 4 |
testDir: "./tests",
|
| 5 |
-
timeout:
|
| 6 |
fullyParallel: false,
|
| 7 |
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
| 8 |
forbidOnly: !!process.env.CI,
|
| 9 |
-
retries:
|
| 10 |
-
maxFailures:
|
| 11 |
workers: 1,
|
| 12 |
reporter: process.env.CI ? [["github"], ["html"]] : "html",
|
| 13 |
use: {
|
| 14 |
/* Base URL to use in actions like `await page.goto('/')`. */
|
| 15 |
baseURL: "http://127.0.0.1:8000",
|
| 16 |
-
|
| 17 |
-
trace: "on-first-retry",
|
| 18 |
testIdAttribute: "data-nodeid", // Useful for easily selecting nodes using getByTestId
|
| 19 |
},
|
| 20 |
projects: [
|
|
@@ -24,7 +23,7 @@ export default defineConfig({
|
|
| 24 |
},
|
| 25 |
],
|
| 26 |
webServer: {
|
| 27 |
-
command: "cd ../../examples && lynxkite",
|
| 28 |
port: 8000,
|
| 29 |
reuseExistingServer: false,
|
| 30 |
},
|
|
|
|
| 2 |
|
| 3 |
export default defineConfig({
|
| 4 |
testDir: "./tests",
|
| 5 |
+
timeout: process.env.CI ? 20000 : 10000,
|
| 6 |
fullyParallel: false,
|
| 7 |
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
| 8 |
forbidOnly: !!process.env.CI,
|
| 9 |
+
retries: 0,
|
| 10 |
+
maxFailures: 3,
|
| 11 |
workers: 1,
|
| 12 |
reporter: process.env.CI ? [["github"], ["html"]] : "html",
|
| 13 |
use: {
|
| 14 |
/* Base URL to use in actions like `await page.goto('/')`. */
|
| 15 |
baseURL: "http://127.0.0.1:8000",
|
| 16 |
+
trace: "on",
|
|
|
|
| 17 |
testIdAttribute: "data-nodeid", // Useful for easily selecting nodes using getByTestId
|
| 18 |
},
|
| 19 |
projects: [
|
|
|
|
| 23 |
},
|
| 24 |
],
|
| 25 |
webServer: {
|
| 26 |
+
command: "cd ../../examples && LYNXKITE_SUPPRESS_OP_ERRORS=1 lynxkite",
|
| 27 |
port: 8000,
|
| 28 |
reuseExistingServer: false,
|
| 29 |
},
|