-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplitools.config.js
43 lines (36 loc) · 2.17 KB
/
applitools.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
// This config file specifies how to run visual tests with Applitools.
// It applies to all tests in this project.
module.exports = {
// Concurrency refers to the number of visual checkpoints Applitools will perform in parallel.
// Warning: If you have a free account, then concurrency will be limited to 1.
testConcurrency: 5,
// To connect visual test results to your account,
// you must set the `APPLITOOLS_API_KEY` environment variable to your Applitools API key.
// To find it: https://applitools.com/tutorials/getting-started/setting-up-your-environment.html
// If you don't explicitly set the API key here,
// then the SDK will automatically read the `APPLITOOLS_API_KEY` environment variable to fetch it.
//apiKey: process.env.APPLITOOLS_API_KEY,
// A batch is the collection of visual checkpoints for a test suite.
// Batches are displayed in the dashboard, so use meaningful names.
//batchName: 'Daily Maverick',
//batchId: process.env.APPLITOOLS_BATCH_ID,
// Applitools can run checkpoints for snapshots against any browser in the Ultrafast Grid.
// This setting defines 5 unique browser configurations to test.
browser: [
// Add 3 desktop browsers with different viewports for cross-browser testing in the Ultrafast Grid.
// Other browsers are also available, like Edge and IE.
//functionality of Windows 7, 8, or 10.
{width: 1280, height: 1080, name: 'chrome'},
{width: 1600, height: 1200, name: 'firefox'},
{width: 1024, height: 768, name: 'safari'},
{width: 1024, height: 768, name: 'edge'},
{width: 1024, height: 768, name: 'ie11'},
// Add 2 mobile emulation devices with different orientations for cross-browser testing in the Ultrafast Grid.
// Other mobile devices are available, including iOS.
//ideally The iPhone 6, 6s and 7 Samsung range, and so the S7 and S8
{deviceName: 'iPhone_6_7_8', screenOrientation: 'portrait'},
{deviceName: 'Pixel 2', screenOrientation: 'portrait'},
{deviceName: 'Galaxy_S8', screenOrientation: 'portrait'},
// {deviceName: 'Nexus 10', screenOrientation: 'landscape'},
]
}