forked from salesforce-ux/design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplitools.legacy.config.js
More file actions
43 lines (41 loc) · 1.3 KB
/
applitools.legacy.config.js
File metadata and controls
43 lines (41 loc) · 1.3 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
const prompt = require('prompt-sync')({sigint: true});
const branch = require('git-branch');
const resolution = { width: 1024, height: 768 };
const currentBranch = branch.sync();
module.exports = {
appName: 'SLDS',
matchLevel: 'Strict',
ignoreDisplacements: true,
accessibilityValidation: {
level: 'AA',
guidelinesVersion: 'WCAG_2_0'
},
properties: [
{ name: 'Group', value: 'legacy' }
],
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: [
// { width: resolution.width, height: resolution.height, name: 'edgelegacy' },
{ width: resolution.width, height: resolution.height, name: 'ie11' }
]
};