Spaces:
Running
Running
File size: 955 Bytes
8fe4e41 1cbdba3 8fe4e41 0715aa0 1cbdba3 8fe4e41 1cbdba3 8fe4e41 1cbdba3 8fe4e41 1cbdba3 8fe4e41 1cbdba3 e4ff751 8fe4e41 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: 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 ../../examples && lynxkite",
url: "http://127.0.0.1:8000",
reuseExistingServer: false,
},
});
|