@cloudscape-design/browser-test-tools 3.0.6 → 3.0.8
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/dist/use-browser.js +3 -4
- package/internal/manifest.json +3 -0
- package/package.json +4 -3
package/dist/use-browser.js
CHANGED
|
@@ -4,9 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.configure = void 0;
|
|
7
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
8
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
9
|
-
const assert_1 = require("assert");
|
|
10
7
|
const browser_1 = __importDefault(require("./browser"));
|
|
11
8
|
const merge_1 = __importDefault(require("lodash/merge"));
|
|
12
9
|
const options = {
|
|
@@ -32,7 +29,9 @@ function useBrowser(...args) {
|
|
|
32
29
|
if ('getLogs' in browser) {
|
|
33
30
|
const logs = (await browser.getLogs('browser'));
|
|
34
31
|
const errors = logs.filter(entry => entry.level === 'SEVERE');
|
|
35
|
-
|
|
32
|
+
if (errors.length > 0) {
|
|
33
|
+
throw new Error('Unexpected errors in browser console:\n' + JSON.stringify(errors, null, 2));
|
|
34
|
+
}
|
|
36
35
|
}
|
|
37
36
|
else {
|
|
38
37
|
console.warn('Unable to check browser console, webdriver does not support this feature');
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"url": "https://github.com/cloudscape-design/browser-test-tools/issues"
|
|
4
4
|
},
|
|
5
5
|
"bundleDependencies": false,
|
|
6
|
-
"commit": "
|
|
6
|
+
"commit": "e2febdb",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@types/pngjs": "^6.0.1",
|
|
9
9
|
"aws-sdk": "^2.1233.0",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist",
|
|
28
28
|
"*.js",
|
|
29
|
-
"*.d.ts"
|
|
29
|
+
"*.d.ts",
|
|
30
|
+
"internal"
|
|
30
31
|
],
|
|
31
32
|
"homepage": "https://cloudscape.design",
|
|
32
33
|
"jest": {
|
|
@@ -59,6 +60,6 @@
|
|
|
59
60
|
"type": "git",
|
|
60
61
|
"url": "git+https://github.com/cloudscape-design/browser-test-tools.git"
|
|
61
62
|
},
|
|
62
|
-
"version": "3.0.
|
|
63
|
+
"version": "3.0.8",
|
|
63
64
|
"license": "Apache-2.0"
|
|
64
65
|
}
|