forked from soterika/aura-vault-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
33 lines (32 loc) · 1.13 KB
/
Copy pathplaywright.config.ts
File metadata and controls
33 lines (32 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { defineConfig, devices } from "@playwright/test";
export default defineConfig({
testDir: "./playwright",
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 2 : undefined,
reporter: [["html", { outputFolder: "playwright-report", open: "never" }], ["list"]],
use: {
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? "http://localhost:3000",
trace: "on-first-retry",
screenshot: "only-on-failure",
},
projects: [
// Desktop browsers
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
{ name: "firefox", use: { ...devices["Desktop Firefox"] } },
{ name: "webkit", use: { ...devices["Desktop Safari"] } },
{ name: "edge", use: { ...devices["Desktop Edge"] } },
// Mobile
{ name: "ios-safari", use: { ...devices["iPhone 14"] } },
{ name: "android-chrome", use: { ...devices["Pixel 7"] } },
// Slow network (3G) — chromium with throttled network
{
name: "chromium-3g",
use: {
...devices["Desktop Chrome"],
launchOptions: { args: ["--disable-extensions"] },
},
},
],
});