-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathwdio.bs.conf.ts
53 lines (48 loc) · 1.47 KB
/
wdio.bs.conf.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
46
47
48
49
50
51
52
53
import type { Options } from '@wdio/types'
import { browserConfigurations } from '../browsers.e2e.conf'
import { getBuildInfos } from '../envUtils'
import { config as baseConfig } from './wdio.base.conf'
export const config: Options.Testrunner = {
...baseConfig,
specFileRetries: 1,
capabilities: browserConfigurations
.filter(
(configuration) =>
configuration.sessionName !== 'IE' &&
// Safari mobile on iOS <= 14.0 does not support
// the way we flush events on page change
// TODO check newer version on browserstack
configuration.sessionName !== 'Safari mobile'
)
.map((configuration) =>
// See https://www.browserstack.com/automate/capabilities?tag=selenium-4
// Make sure to look at the "W3C Protocol" tab
({
browserName: configuration.name,
browserVersion: configuration.version,
'bstack:options': {
os: configuration.os,
osVersion: configuration.osVersion,
deviceName: configuration.device,
appiumVersion: '1.22.0',
seleniumVersion: '4.1.2',
sessionName: configuration.sessionName,
projectName: 'browser sdk e2e',
buildName: getBuildInfos(),
},
})
),
logLevels: {
'@wdio/browserstack-service': 'info',
},
services: [
[
'browserstack',
{
browserstackLocal: true,
},
],
],
user: process.env.BS_USERNAME,
key: process.env.BS_ACCESS_KEY,
}