@applitools/core 4.8.0 → 4.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/CHANGELOG.md +35 -0
- package/dist/ufg/utils/take-dom-snapshot.js +3 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.9.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@4.8.0...js/core@4.9.0) (2024-02-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* remove dom snapshot support for IE11 ([#2187](https://github.com/applitools/eyes.sdk.javascript1/issues/2187)) ([4448999](https://github.com/applitools/eyes.sdk.javascript1/commit/4448999ce367f1302eeb36c8484a729fe4e1159b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* avoid duplicate elements under slots when normal DOM ([#2199](https://github.com/applitools/eyes.sdk.javascript1/issues/2199)) ([0666902](https://github.com/applitools/eyes.sdk.javascript1/commit/0666902254ba5e0ca7b2a7cd1abe1d7d2a3bc837))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* @applitools/dom-snapshot bumped to 4.8.0
|
|
19
|
+
#### Features
|
|
20
|
+
|
|
21
|
+
* remove dom snapshot support for IE11 ([#2187](https://github.com/applitools/eyes.sdk.javascript1/issues/2187)) ([4448999](https://github.com/applitools/eyes.sdk.javascript1/commit/4448999ce367f1302eeb36c8484a729fe4e1159b))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* avoid duplicate elements under slots when normal DOM ([#2199](https://github.com/applitools/eyes.sdk.javascript1/issues/2199)) ([0666902](https://github.com/applitools/eyes.sdk.javascript1/commit/0666902254ba5e0ca7b2a7cd1abe1d7d2a3bc837))
|
|
27
|
+
* @applitools/spec-driver-webdriver bumped to 1.1.0
|
|
28
|
+
#### Features
|
|
29
|
+
|
|
30
|
+
* env var to skip deprected jwp commands ([#2200](https://github.com/applitools/eyes.sdk.javascript1/issues/2200)) ([d9123db](https://github.com/applitools/eyes.sdk.javascript1/commit/d9123dbba85679d1c6999718b90b89debb18ed18))
|
|
31
|
+
* @applitools/screenshoter bumped to 3.8.24
|
|
32
|
+
|
|
33
|
+
* @applitools/nml-client bumped to 1.7.1
|
|
34
|
+
|
|
35
|
+
* @applitools/ec-client bumped to 1.7.26
|
|
36
|
+
|
|
37
|
+
|
|
3
38
|
## [4.8.0](https://github.com/applitools/eyes.sdk.javascript1/compare/js/core@4.7.1...js/core@4.8.0) (2024-02-13)
|
|
4
39
|
|
|
5
40
|
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.extractCrossFrames = exports.takeDomSnapshot = void 0;
|
|
27
27
|
const utils = __importStar(require("@applitools/utils"));
|
|
28
|
-
const { getProcessPagePoll, getPollResult
|
|
28
|
+
const { getProcessPagePoll, getPollResult } = require('@applitools/dom-snapshot');
|
|
29
29
|
async function takeDomSnapshot({ context, settings, logger, }) {
|
|
30
30
|
var _a;
|
|
31
31
|
const driver = context.driver;
|
|
@@ -41,7 +41,6 @@ async function takeDomSnapshot({ context, settings, logger, }) {
|
|
|
41
41
|
if (!features.allCookies) {
|
|
42
42
|
cookies.push(...(await context.getCookies()));
|
|
43
43
|
}
|
|
44
|
-
const isLegacyBrowser = environment.isIE || environment.isEdgeLegacy;
|
|
45
44
|
const arg = {
|
|
46
45
|
dontFetchResources: settings === null || settings === void 0 ? void 0 : settings.disableBrowserFetching,
|
|
47
46
|
skipResources: settings === null || settings === void 0 ? void 0 : settings.skipResources,
|
|
@@ -55,10 +54,10 @@ async function takeDomSnapshot({ context, settings, logger, }) {
|
|
|
55
54
|
const scripts = {
|
|
56
55
|
main: features.canExecuteOnlyFunctionScripts
|
|
57
56
|
? require('@applitools/dom-snapshot').processPagePoll
|
|
58
|
-
: `return (${
|
|
57
|
+
: `return (${await getProcessPagePoll()}).apply(null, arguments);`,
|
|
59
58
|
poll: features.canExecuteOnlyFunctionScripts
|
|
60
59
|
? require('@applitools/dom-snapshot').pollResult
|
|
61
|
-
: `return (${
|
|
60
|
+
: `return (${await getPollResult()}).apply(null, arguments);`,
|
|
62
61
|
};
|
|
63
62
|
const snapshot = await context.executePoll(scripts, {
|
|
64
63
|
main: arg,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"homepage": "https://applitools.com",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@applitools/core-base": "1.9.0",
|
|
78
78
|
"@applitools/dom-capture": "11.2.5",
|
|
79
|
-
"@applitools/dom-snapshot": "4.
|
|
79
|
+
"@applitools/dom-snapshot": "4.8.0",
|
|
80
80
|
"@applitools/driver": "1.16.2",
|
|
81
|
-
"@applitools/ec-client": "1.7.
|
|
81
|
+
"@applitools/ec-client": "1.7.26",
|
|
82
82
|
"@applitools/logger": "2.0.14",
|
|
83
|
-
"@applitools/nml-client": "1.7.
|
|
83
|
+
"@applitools/nml-client": "1.7.1",
|
|
84
84
|
"@applitools/req": "1.6.4",
|
|
85
|
-
"@applitools/screenshoter": "3.8.
|
|
85
|
+
"@applitools/screenshoter": "3.8.24",
|
|
86
86
|
"@applitools/snippets": "2.4.25",
|
|
87
87
|
"@applitools/socket": "1.1.14",
|
|
88
|
-
"@applitools/spec-driver-webdriver": "1.0
|
|
88
|
+
"@applitools/spec-driver-webdriver": "1.1.0",
|
|
89
89
|
"@applitools/ufg-client": "1.9.9",
|
|
90
90
|
"@applitools/utils": "1.7.0",
|
|
91
91
|
"@types/ws": "8.5.5",
|