forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplitools.mobile.config.js
More file actions
46 lines (44 loc) · 1.21 KB
/
applitools.mobile.config.js
File metadata and controls
46 lines (44 loc) · 1.21 KB
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
const prompt = require('prompt-sync')({sigint: true});
const branch = require('git-branch');
const currentBranch = branch.sync();
module.exports = {
appName: 'SLDS',
matchLevel: 'Strict',
ignoreDisplacements: true,
accessibilityValidation: {
level: 'AA',
guidelinesVersion: 'WCAG_2_0'
},
properties: [
{ name: 'Group', value: 'mobile' }
],
batchName: process.env.CI
? undefined
: prompt(`Please provide a batch name for this run: `) + ` (${process.env.LOGNAME})`,
branchName: process.env.CI
? undefined
: `localRun/${process.env.LOGNAME}/${currentBranch}`,
parentBranchName: process.env.CI
? undefined
: `localRun/${currentBranch}`,
showLogs: process.env.CI,
// saveDebugData: false,
exitcode: false,
concurrency: 100,
serverUrl: 'https://salesforceuxeyesapi.applitools.com',
include: ({ name, kind, parameters }) => {
return /^Kitchen Sink/.test(name);
},
puppeteerOptions: process.env.CIRCLECI
? { executablePath: '/usr/bin/google-chrome' }
: undefined,
waitBeforeScreenshot: 250,
browser: [
{
iosDeviceInfo: {
deviceName: 'iPhone XR',
screenOrientation: 'portrait',
}
}
]
};