forked from fossasia/visdom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
44 lines (42 loc) · 1.04 KB
/
Copy pathplaywright.config.js
File metadata and controls
44 lines (42 loc) · 1.04 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
/**
* Copyright 2017-present, The Visdom Authors
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*
*/
const { defineConfig, devices } = require('@playwright/test');
/**
* @see https://playwright.dev/docs/test-configuration
*/
module.exports = defineConfig({
testDir: './playwright/tests',
timeout: 30 * 1000,
expect: {
timeout: 5000,
},
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
outputDir: './playwright/test-results',
reporter: [['html', { outputFolder: 'playwright/playwright-report' }]],
use: {
baseURL: 'http://localhost:8098',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
webServer: {
command: 'visdom -port 8098 -env_path /tmp',
url: 'http://localhost:8098',
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000,
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});