@spscommerce/e2e-core 2.2.4 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,6 +21,7 @@ export USER_PASSWORD="EXAMPLE_PASSWORD"
21
21
  ```
22
22
  TIMEOUT=75000
23
23
  WORKERS=6
24
+ VIEWPORT={"width": 1920, "height": 1080}
24
25
  ```
25
26
  | Variable | description | default | possible values |
26
27
  | ------------------: | -------------------------------------------------- | ------------------------------ | ------------------------------------ |
@@ -30,7 +31,7 @@ WORKERS=6
30
31
  | TIMEOUT | global timeout for each test | 30000 | [number_in_ms] |
31
32
  | WORKERS | number of workers (test threads) | 1 | [number] |
32
33
  | TRACER | create PW actions trace file per each failed test | false | true, false |
33
- | VIEWPORT | emulates consistent viewport for each page | { width: 1536, height: 960 } | [string] |
34
+ | VIEWPORT | emulates consistent viewport for each page | {"width": 1536, "height": 960} | [string] |
34
35
  | CI | used in CI: forbidOnly and maxFailures are applied | false | true, false |
35
36
  | SUITE | used in CI: report file name is created per suite | TEST-results.xml | [string] |
36
37
  | TEST_DIR | used in package.json: tests directory path | - | [string] |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spscommerce/e2e-core",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "An automation test framework which is based on Playwright.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -81,7 +81,7 @@ const config = {
81
81
  /* Run in headless mode by default (if process.env.HEADLESS is not specified). */
82
82
  headless: !process.env.HEADLESS || process.env.HEADLESS === 'true' ? true : false,
83
83
  /* Emulates consistent viewport for each page. */
84
- viewport: JSON.parse(process.env.VIEWPORT) || { width: 1536, height: 960 },
84
+ viewport: process.env.VIEWPORT ? JSON.parse(process.env.VIEWPORT) : { width: 1536, height: 960 },
85
85
  /* Whether to ignore HTTPS errors when sending network requests. */
86
86
  ignoreHTTPSErrors: true,
87
87
  /* Base URL to use in actions like `await page.goto('/')`. */