Initial Commit
This commit is contained in:
32
apps/testbed/playwright.config.ts
Normal file
32
apps/testbed/playwright.config.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { defineConfig, devices } from "@playwright/test";
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "./e2e",
|
||||
fullyParallel: true,
|
||||
retries: process.env["CI"] ? 2 : 0,
|
||||
reporter: [["html", { open: "never" }], ["github"]],
|
||||
use: {
|
||||
baseURL: "http://localhost:3200",
|
||||
trace: "on-first-retry",
|
||||
screenshot: "only-on-failure",
|
||||
video: "on-first-retry",
|
||||
},
|
||||
projects: [
|
||||
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
||||
{ name: "firefox", use: { ...devices["Desktop Firefox"] } },
|
||||
{ name: "webkit", use: { ...devices["Desktop Safari"] } },
|
||||
{ name: "mobile-chrome", use: { ...devices["Pixel 7"] } },
|
||||
{ name: "mobile-safari", use: { ...devices["iPhone 15"] } },
|
||||
{
|
||||
name: "chromium-extensions",
|
||||
testMatch: "**/extensions/**",
|
||||
use: { ...devices["Desktop Chrome"] },
|
||||
},
|
||||
],
|
||||
webServer: {
|
||||
command: "bun run dev",
|
||||
url: "http://localhost:3200",
|
||||
reuseExistingServer: !process.env["CI"],
|
||||
timeout: 30_000,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user