-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathplaywright.ios.config.ts
More file actions
32 lines (31 loc) · 1.06 KB
/
playwright.ios.config.ts
File metadata and controls
32 lines (31 loc) · 1.06 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
import { defineConfig } from '@playwright/test';
/**
* iOS Simulator E2E config — mirrors playwright.e2e.config.ts but with:
* - separate testDir (playwright/e2e/ios/tests)
* - longer per-test timeout for cold WASM compile + sync to chain tip
* - global setup that asserts App.app exists and reserves the device pair
* - separate output dir so Chrome and iOS artifacts don't collide
*/
export default defineConfig({
testDir: './playwright/e2e/ios/tests',
timeout: 900_000, // 15 min per test — WASM prove on simulator is slow (~60-90s per consume)
expect: {
timeout: 60_000,
},
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: 0,
maxFailures: 1,
workers: 1,
reporter: [
['list'],
['json', { outputFile: 'test-results-ios/results.json' }],
['html', { outputFolder: 'test-results-ios/html', open: 'never' }],
],
globalSetup: './playwright/e2e/ios/fixtures/global-setup.ts',
globalTeardown: './playwright/e2e/ios/fixtures/global-teardown.ts',
use: {
actionTimeout: 30_000,
navigationTimeout: 90_000,
},
});