forked from BrowserStackCE/browserstack-examples-playwright
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playwright-bstack.config.js
53 lines (51 loc) · 1.22 KB
/
playwright-bstack.config.js
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
46
47
48
49
50
51
52
53
const { devices } = require('@playwright/test');
/** @type {import('@playwright/test').PlaywrightTestConfig} */
const config = {
testDir: '../../src/test',
workers : 10,
timeout: 60000,
use:{
viewport: null,
baseURL: 'https://bstackdemo.com'
},
projects: [
// -- BrowserStack Projects --
// name should be of the format browser@browser_version:os os_version@browserstack
{
name: 'chrome@latest:Windows 10@browserstack',
use: {
browserName: 'chromium',
channel: 'chrome',
},
},
{
name: 'chrome@latest-beta:Windows 10@browserstack',
use: {
browserName: 'chromium',
channel: 'chrome',
},
},
{
name: 'edge@90:Windows 10@browserstack',
use: {
browserName: 'chromium',
},
},
{
name: 'playwright-firefox@latest:Windows 10@browserstack',
use: {
browserName: 'firefox',
ignoreHTTPSErrors: true,
},
},
{
name: 'playwright-webkit@latest:OSX Monterey@browserstack',
use: {
browserName: 'webkit',
// Config to use playwright emulated devices.
// ...devices['iPhone 12 Pro Max'],
},
},
],
};
module.exports = config;