28 lines
551 B
TypeScript
28 lines
551 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./tests/e2e",
|
|
testMatch: ["**/*.e2e.ts"],
|
|
timeout: 30_000,
|
|
expect: {
|
|
timeout: 5_000
|
|
},
|
|
use: {
|
|
baseURL: "http://127.0.0.1:4173",
|
|
trace: "on-first-retry"
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: {
|
|
...devices["Desktop Chrome"]
|
|
}
|
|
}
|
|
],
|
|
webServer: {
|
|
command: "npm run dev -- --host 127.0.0.1 --port 4173",
|
|
url: "http://127.0.0.1:4173",
|
|
reuseExistingServer: !process.env.CI
|
|
}
|
|
});
|