mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 14:37:26 +00:00
31 lines
669 B
TypeScript
31 lines
669 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
timeout: 30_000,
|
|
expect: {
|
|
timeout: 5_000
|
|
},
|
|
fullyParallel: true,
|
|
reporter: process.env.CI ? [["github"], ["list"]] : "list",
|
|
use: {
|
|
baseURL: "http://127.0.0.1:5173",
|
|
trace: "on-first-retry"
|
|
},
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: { ...devices["Desktop Chrome"] }
|
|
},
|
|
{
|
|
name: "mobile-chrome",
|
|
use: { ...devices["Pixel 7"] }
|
|
}
|
|
],
|
|
webServer: {
|
|
command: "npm run dev -- --port 5173",
|
|
url: "http://127.0.0.1:5173",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 30_000
|
|
}
|
|
});
|