const { defineConfig } = require("@playwright/test");
module.exports = defineConfig({
testDir: "tests/browser",
timeout: 60_000,
retries: process.env.CI ? 2 : 1,
use: {
baseURL: "http://127.0.0.1:8080",
trace: "on-first-retry",
viewport: { width: 1280, height: 1200 },
},
webServer: [
{
command:
"dx serve --example regressions --platform web --features web --interactive false --open false --hot-patch false --port 8080",
url: "http://127.0.0.1:8080/dioxus-dnd/",
timeout: 10 * 60 * 1000,
reuseExistingServer: !process.env.CI,
stdout: "pipe",
},
],
});