-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
45 lines (43 loc) · 1.3 KB
/
Copy pathplaywright.config.ts
File metadata and controls
45 lines (43 loc) · 1.3 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
34
35
36
37
38
39
40
41
42
43
44
45
import { defineConfig, devices } from "@playwright/test"
const testWalletSeed =
"4c4d6a7e5f6a8b9c0d1e2f30415263748596a7b8c9d0e1f2031425364758697a"
export default defineConfig({
testDir: "./tests-playwright",
testMatch: "**/*.e2e.ts",
outputDir: "tests-playwright/artifacts",
snapshotPathTemplate: "{testDir}/screenshots/{projectName}/{arg}{ext}",
fullyParallel: false,
workers: 1,
reporter: "list",
use: {
baseURL: "http://localhost:3000",
trace: "retain-on-failure",
video: "retain-on-failure",
},
projects: [
{
name: "desktop",
use: { ...devices["Desktop Chrome"] },
},
{
name: "mobile",
use: { ...devices["iPhone 13"], browserName: "chromium" },
},
],
webServer: {
command: "yarn next dev --turbo -p 3000",
url: "http://localhost:3000",
reuseExistingServer: false,
env: {
...process.env,
NEXT_PUBLIC_PLAYWRIGHT_TEST_MODE: "true",
NEXT_PUBLIC_LOGIN_GOOGLE_ENABLED: "false",
NEXT_PUBLIC_LOGIN_FACEBOOK_ENABLED: "false",
NEXT_PUBLIC_LOGIN_PWLESS_ENABLED: "false",
NEXT_PUBLIC_TEST_LOGIN_ENABLED: "true",
NEXT_PUBLIC_TEST_LOGIN_MASTER_SEED: testWalletSeed,
NEXT_PUBLIC_TEST_LOGIN_USER_NAME: "Playwright test wallet",
NEXT_PUBLIC_TEST_LOGIN_PROFILE_IMAGE: "/icon.svg",
},
},
})