forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
applitools.legacy.config.js
43 lines (41 loc) · 1.34 KB
/
applitools.legacy.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
const branch = require('git-branch');
const resolution = { width: 1024, height: 768 };
const currentBranch = branch.sync();
module.exports = {
apiKey: process.env.APPLITOOLS_API_KEY,
appName: 'SLDS',
matchLevel: 'Strict',
ignoreDisplacements: true,
properties: [{ name: 'Group', value: 'legacy' }],
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,
fakeIE: true,
visualGridOptions: {
ieV2: true
},
browser: [
// { width: resolution.width, height: resolution.height, name: 'edgelegacy' },
{ width: resolution.width, height: resolution.height, name: 'ie11' }
]
};