forked from Ajaxy/telegram-tt
-
Notifications
You must be signed in to change notification settings - Fork 12
/
playwright.config.ts
39 lines (38 loc) · 958 Bytes
/
playwright.config.ts
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 { PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
testDir: 'tests/playwright',
timeout: process.env.CI ? 60 * 5 * 1000 : 30 * 1000,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
webServer: {
command: 'npm run build:mocked && serve -l 1235 dist',
port: 1235,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
use: {
baseURL: 'http://localhost:1235/',
video: 'retain-on-failure',
trace: 'on-first-retry',
},
reporter: [['html', { outputFolder: 'playwright-report' }]],
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
{
name: 'ios',
use: { ...devices['iPhone X'] },
},
],
};
export default config;