Import project configuration: playwright.config.ts
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "./tests/e2e",
|
||||
timeout: 30_000,
|
||||
expect: { timeout: 15_000 },
|
||||
use: {
|
||||
baseURL: "http://127.0.0.1:3107",
|
||||
channel: "chrome",
|
||||
contextOptions: {
|
||||
reducedMotion: "reduce",
|
||||
},
|
||||
trace: "on-first-retry",
|
||||
},
|
||||
webServer: {
|
||||
command: "NEXT_DIST_DIR=.next-dev npm run dev -- -p 3107",
|
||||
url: "http://127.0.0.1:3107",
|
||||
reuseExistingServer: !process.env.CI,
|
||||
timeout: 120_000,
|
||||
},
|
||||
projects: [
|
||||
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
||||
{ name: "mobile", use: { ...devices["Pixel 5"] } },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user