-
Notifications
You must be signed in to change notification settings - Fork 19
/
playwright-browserstack.config.ts
45 lines (44 loc) · 1.15 KB
/
playwright-browserstack.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
// eslint-disable-next-line import/no-extraneous-dependencies
import { devices, PlaywrightTestConfig } from "@playwright/test";
const config: PlaywrightTestConfig = {
timeout: 80_000,
testDir: "tests/e2e",
globalSetup: "tests/e2e/browserstack-setup.ts",
globalTeardown: "tests/e2e/browserstack-teardown.ts",
use: {
viewport: null,
},
// name format: browser[@version]:os@version:browserstack
projects: [
// {
// name: "chrome@latest:Windows@10:browserstack",
// use: {
// browserName: "chromium",
// ...devices["Desktop Chrome"],
// },
// },
{
name: "chrome@latest-beta:OSX Big Sur@browserstack",
use: {
browserName: "chromium",
channel: "chrome",
},
},
{
name: "playwright-webkit@latest:OSX Big Sur@browserstack",
use: {
browserName: "webkit",
...devices["Desktop Safari"],
// channel: "chrome",
},
},
// {
// name: "playwright-webkit@latest:OSX Big Sur@browserstack",
// use: {
// browserName: "webkit",
// ...devices["iPhone 12 Pro Max"],
// },
// },
],
};
export default config;