forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
applitools.mobile.config.js
42 lines (40 loc) · 1.2 KB
/
applitools.mobile.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
const branch = require('git-branch');
const currentBranch = branch.sync();
module.exports = {
apiKey: process.env.APPLITOOLS_API_KEY,
appName: 'SLDS',
matchLevel: 'Strict',
ignoreDisplacements: true,
properties: [{ name: 'Group', value: 'mobile' }],
batchName: process.env.CI ? undefined : '',
branchName: process.env.CI
? undefined
: `localRun/${process.env.LOGNAME}/${currentBranch}`,
parentBranchName: process.env.CI ? undefined : `localRun/${currentBranch}`,
showLogs: process.env.CI || false,
showStorybookOutput: process.env.CI || false,
// saveDebugData: false,
exitcode: false,
testConcurrency: 100,
serverUrl: 'https://salesforceuxeyesapi.applitools.com',
testBlueprintPattern: '.*',
testNamePattern: '^(?:.+|) ?Sink',
include: function({ name, kind }) {
return (
new RegExp(this.testBlueprintPattern, 'gi').test(kind) &&
new RegExp(this.testNamePattern, 'gi').test(name)
);
},
puppeteerOptions: process.env.CIRCLECI
? { executablePath: '/usr/bin/google-chrome' }
: undefined,
waitBeforeScreenshot: 1000,
browser: [
{
iosDeviceInfo: {
deviceName: 'iPhone XR',
screenOrientation: 'portrait'
}
}
]
};