-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.ts
More file actions
28 lines (24 loc) · 917 Bytes
/
constants.ts
File metadata and controls
28 lines (24 loc) · 917 Bytes
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
export const PAGE_TRANSITION_COMMANDS: string[] = [
'url',
'navigateTo',
'elementClick'
]
export const DEFAULT_LAUNCH_CAPS: WebdriverIO.Capabilities = {
browserName: 'chrome',
'goog:chromeOptions': {
// production:
// args: ['--window-size=1200,800']
// development:
args: ['--window-size=1600,1200']
}
}
export const INTERNAL_COMMANDS = [
'emit', 'browsingContextLocateNodes', 'browsingContextNavigate',
'waitUntil', 'getTitle', 'getUrl', 'getWindowSize', 'setWindowSize', 'deleteSession',
'findElementFromShadowRoot', 'findElementsFromShadowRoot', 'waitForExist', 'browsingContextGetTree',
'scriptCallFunction', 'getElement', 'execute', 'findElement'
]
export const CONTEXT_CHANGE_COMMANDS = [
'url', 'back', 'forward', 'refresh', 'switchFrame', 'newWindow', 'createWindow', 'closeWindow'
]
export const SPEC_FILE_PATTERN = /(test|spec|features)[\\/].*\.(js|ts)$/i