forked from google/playground-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright.config.ts
45 lines (44 loc) · 1.25 KB
/
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
42
43
44
45
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/
const config = {
testDir: 'src/test/playwright',
// There is some flakiness, especially in webkit.
//
// TODO(aomarks) Investigate this further. Haven't been able to isolate the
// flakes yet, but it could indicate a genuine problem.
// https://github.com/google/playground-elements/issues/229
retries: 3,
// Not running both browsers at the same time helps with flakiness too. Could
// this imply a race condition that is influenced by CPU load?
workers: 1,
// Defaults to 30 seconds. We shouldn't need that much time, and it's better
// to fail fast and retry.
timeout: 5000,
projects: [
{
name: 'chromium',
use: {
browserName: 'chromium',
},
},
// Webkit tests are *very* flakey compared to Chrome. Temporarily disabled.
// {
// name: 'webkit',
// use: {
// browserName: 'webkit',
// },
// },
// Sadly playwright Firefox does not currently work with service workers at
// all, see https://github.com/microsoft/playwright/issues/7288.
// {
// name: 'firefox',
// use: {
// browserName: 'firefox',
// },
// },
],
};
export default config;