forked from boxyhq/saas-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
41 lines (39 loc) · 888 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
40
41
import { PlaywrightTestConfig, devices } from '@playwright/test';
const config: PlaywrightTestConfig = {
workers: 1,
globalSetup: require.resolve('./tests/e2e/support/globalSetup.ts'),
// Assertion timeout
expect: {
timeout: 10 * 1000,
},
projects: [
{
name: 'setup',
testMatch: 'support/*.setup.ts',
teardown: 'cleanup db',
},
{
name: 'cleanup db',
testMatch: 'support/*.teardown.ts',
},
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
dependencies: ['setup'],
},
],
reporter: 'html',
webServer: {
command: 'npm run start',
url: 'http://localhost:4002',
reuseExistingServer: !process.env.CI,
},
use: {
headless: true,
ignoreHTTPSErrors: true,
baseURL: 'http://localhost:4002',
video: 'off',
},
testDir: './tests/e2e',
};
export default config;