forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
applitools.mobile.config.js
44 lines (42 loc) · 1.33 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
43
44
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
? `${process.env.GITHUB_REPOSITORY}/${process.env.GITHUB_HEAD_REF}`
: `localRun/${process.env.LOGNAME}/${currentBranch}`,
parentBranchName: process.env.CI
? `${process.env.GITHUB_REPOSITORY}/${process.env.APPLITOOLS_REPO_DEFAULT_BRANCH}`
: `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.CI
? { executablePath: "/usr/bin/google-chrome" }
: undefined,
waitBeforeScreenshot: 1000,
browser: [
{
iosDeviceInfo: {
deviceName: "iPhone 13",
screenOrientation: "portrait",
},
},
],
};