forked from SmartDropLabs/smartdrop-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
39 lines (38 loc) · 986 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
39 lines (38 loc) · 986 Bytes
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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: '.',
testMatch: ['**/*.spec.ts', '**/*.test.ts', '**/*.e2e.ts'],
timeout: 30_000,
retries: process.env.CI ? 2 : 0,
expect: {
toHaveScreenshot: {
animations: 'disabled',
caret: 'hide',
scale: 'css',
},
},
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'pnpm dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 120_000,
env: {
NEXT_PUBLIC_STELLAR_NETWORK: 'TESTNET',
NEXT_PUBLIC_SOROBAN_RPC_URL: 'https://soroban-testnet.stellar.org',
NEXT_PUBLIC_LEADERBOARD_API_URL:
'http://localhost:3000/__mock-leaderboard-api',
NEXT_PUBLIC_MIN_LOCK_PERIOD_SECONDS: '604800',
NEXT_PUBLIC_E2E: 'true',
},
},
});