|
1 | | -// This config file specifies how to run visual tests with Applitools. |
2 | | -// It applies to all tests in this project. |
3 | | - |
4 | 1 | module.exports = { |
5 | | - |
6 | | - // Concurrency refers to the number of visual checkpoints Applitools will perform in parallel. |
| 2 | + // Specify the number of visual checkpoints Applitools will perform in parallel. |
7 | 3 | // Warning: If you have a free account, then concurrency will be limited to 1. |
8 | 4 | testConcurrency: 5, |
9 | 5 |
|
10 | | - // To connect visual test results to your account, |
11 | | - // you must set the `APPLITOOLS_API_KEY` environment variable to your Applitools API key. |
12 | | - // To find it: https://applitools.com/tutorials/getting-started/setting-up-your-environment.html |
13 | | - // If you don't explicitly set the API key here, |
14 | | - // then the SDK will automatically read the `APPLITOOLS_API_KEY` environment variable to fetch it. |
15 | | - apiKey: 'APPLITOOLS_API_KEY', |
16 | | - |
17 | | - // A batch is the collection of visual checkpoints for a test suite. |
18 | | - // Batches are displayed in the Eyes Test Manager, so use meaningful names. |
19 | | - batchName: 'Example: Cypress in JavaScript with the Ultrafast Grid', |
| 6 | + // Uncomment the below line and paste in your API key as an alternative to using an environment variable |
| 7 | + // apiKey: '', |
20 | 8 |
|
21 | | - // Applitools can run checkpoints for snapshots against any browser in the Ultrafast Grid. |
22 | | - // This setting defines 5 unique browser configurations to test. |
23 | | - browser: [ |
| 9 | + batchName: 'Cypress Quickstart', |
24 | 10 |
|
25 | | - // Add 3 desktop browsers with different viewports for cross-browser testing in the Ultrafast Grid. |
26 | | - // Other browsers are also available, like Edge and IE. |
| 11 | + // Select the browsers and devices to run your tests on via the Ultrafast Grid |
| 12 | + browser: [ |
27 | 13 | {width: 800, height: 600, name: 'chrome'}, |
28 | 14 | {width: 1600, height: 1200, name: 'firefox'}, |
29 | 15 | {width: 1024, height: 768, name: 'safari'}, |
30 | | - |
31 | | - // Add 2 mobile emulation devices with different orientations for cross-browser testing in the Ultrafast Grid. |
32 | | - // Other mobile devices are available, including iOS. |
33 | 16 | {deviceName: 'Pixel 2', screenOrientation: 'portrait'}, |
34 | 17 | {deviceName: 'Nexus 10', screenOrientation: 'landscape'}, |
35 | 18 | ] |
|
0 commit comments