@brightspace-ui/testing 1.8.2 → 1.9.0
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@brightspace-ui/testing",
|
|
3
3
|
"description": "Utilities for testing front-end components and applications",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.9.0",
|
|
6
6
|
"repository": "https://github.com/BrightspaceUI/testing.git",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"lint": "eslint . --ext .js",
|
|
@@ -175,7 +175,7 @@ function renderResult(resultData, options) {
|
|
|
175
175
|
let newPart;
|
|
176
176
|
if (resultData.passed) {
|
|
177
177
|
newPart = html`<div class="result-graphic padding">${ICON_TADA}<p>Hooray! No changes here.</p></div>`;
|
|
178
|
-
} else if (resultData.info.pixelsDiff === 0) {
|
|
178
|
+
} else if (!resultData.info.diff && resultData.info.pixelsDiff === 0) {
|
|
179
179
|
newPart = html`<div class="result-graphic padding">${ICON_BYTES}
|
|
180
180
|
<p>No pixels have changed, but the byte size is different.</p>
|
|
181
181
|
<p class="details">
|
package/src/server/wtr-config.js
CHANGED
|
@@ -157,7 +157,11 @@ export class WTRConfig {
|
|
|
157
157
|
|
|
158
158
|
const config = {};
|
|
159
159
|
|
|
160
|
-
if (timeout)
|
|
160
|
+
if (timeout) {
|
|
161
|
+
config.timeout = String(timeout);
|
|
162
|
+
} else if (group === 'vdiff') {
|
|
163
|
+
config.timeout = '5000';
|
|
164
|
+
}
|
|
161
165
|
if (open || watch) config.timeout = '0';
|
|
162
166
|
if (grep) config.grep = grep;
|
|
163
167
|
if (slow) {
|