forked from vmware-clarity/ng-clarity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
41 lines (37 loc) · 939 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
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { defineConfig, devices } from '@playwright/test';
const browser = process.env['CLARITY_VRT_BROWSER'];
const deviceMap = {
chromium: 'Desktop Chrome',
firefox: 'Desktop Firefox',
};
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests',
snapshotPathTemplate: './tests/snapshots/{arg}{ext}',
timeout: 30 * 1000,
expect: {
timeout: 5000,
},
fullyParallel: true,
forbidOnly: true,
retries: 2,
workers: 3,
reporter: 'html',
projects: [
{
name: browser,
use: { ...devices[deviceMap[browser]] },
},
],
webServer: {
command: 'npm run ts-node -- ./scripts/start-storybook-server.ts',
port: 8080,
},
});