@applitools/eyes-browser 1.5.8 → 1.5.9
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 +32 -0
- package/dist/index.js +70 -25
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.9](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.5.8...js/eyes-browser@1.5.9) (2025-10-01)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/screenshoter bumped to 3.12.6
|
|
9
|
+
#### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* wait after scroll | FLD-3594 ([#3252](https://github.com/Applitools-Dev/sdk/issues/3252)) ([e452422](https://github.com/Applitools-Dev/sdk/commit/e4524229b64e40d9b9596a92bfa94daf5824286a))
|
|
12
|
+
* @applitools/nml-client bumped to 1.11.7
|
|
13
|
+
|
|
14
|
+
* @applitools/core-base bumped to 1.28.1
|
|
15
|
+
#### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* unexpected concurrency values from server | AD-11465 ([#3248](https://github.com/Applitools-Dev/sdk/issues/3248)) ([0dd28c7](https://github.com/Applitools-Dev/sdk/commit/0dd28c7b297d5ad3aabc6b87e427e3e09a993825))
|
|
18
|
+
* @applitools/core bumped to 4.49.0
|
|
19
|
+
#### Features
|
|
20
|
+
|
|
21
|
+
* storybook addon ([#3104](https://github.com/Applitools-Dev/sdk/issues/3104)) ([16e09cb](https://github.com/Applitools-Dev/sdk/commit/16e09cba8928c3a24b9e0d9d41e0936fbaec2773))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
#### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* duplicate concurrency warnings ([#3255](https://github.com/Applitools-Dev/sdk/issues/3255)) ([ef2f94a](https://github.com/Applitools-Dev/sdk/commit/ef2f94ab4137c78396583f166344285beeb49be7))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
* @applitools/ec-client bumped to 1.12.9
|
|
31
|
+
|
|
32
|
+
* @applitools/eyes bumped to 1.36.9
|
|
33
|
+
|
|
34
|
+
|
|
3
35
|
## [1.5.8](https://github.com/Applitools-Dev/sdk/compare/js/eyes-browser@1.5.7...js/eyes-browser@1.5.8) (2025-09-22)
|
|
4
36
|
|
|
5
37
|
|
package/dist/index.js
CHANGED
|
@@ -21876,6 +21876,36 @@ var require_constants2 = __commonJS({
|
|
|
21876
21876
|
}
|
|
21877
21877
|
});
|
|
21878
21878
|
|
|
21879
|
+
// ../core-base/dist/utils/server-concurrency-converter.js
|
|
21880
|
+
var require_server_concurrency_converter = __commonJS({
|
|
21881
|
+
"../core-base/dist/utils/server-concurrency-converter.js"(exports) {
|
|
21882
|
+
"use strict";
|
|
21883
|
+
init_process();
|
|
21884
|
+
init_setImmediate();
|
|
21885
|
+
init_buffer();
|
|
21886
|
+
init_setInterval();
|
|
21887
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21888
|
+
exports.handleConcurrency = void 0;
|
|
21889
|
+
var constants_1 = require_constants2();
|
|
21890
|
+
function handleConcurrency(concurrency) {
|
|
21891
|
+
function normalize(value) {
|
|
21892
|
+
if (value === 0 || value == null)
|
|
21893
|
+
return constants_1.DEFAULT_CONCURRENCY;
|
|
21894
|
+
if (value === -1)
|
|
21895
|
+
return -1;
|
|
21896
|
+
if (typeof value === "number" && value < 0)
|
|
21897
|
+
return -1;
|
|
21898
|
+
return value;
|
|
21899
|
+
}
|
|
21900
|
+
return {
|
|
21901
|
+
sessionConcurrency: normalize(concurrency === null || concurrency === void 0 ? void 0 : concurrency.sessionConcurrencyLimit),
|
|
21902
|
+
componentConcurrency: normalize(concurrency === null || concurrency === void 0 ? void 0 : concurrency.componentConcurrencyLimit)
|
|
21903
|
+
};
|
|
21904
|
+
}
|
|
21905
|
+
exports.handleConcurrency = handleConcurrency;
|
|
21906
|
+
}
|
|
21907
|
+
});
|
|
21908
|
+
|
|
21879
21909
|
// ../core-base/dist/server/requests.js
|
|
21880
21910
|
var require_requests = __commonJS({
|
|
21881
21911
|
"../core-base/dist/server/requests.js"(exports) {
|
|
@@ -21932,7 +21962,7 @@ var require_requests = __commonJS({
|
|
|
21932
21962
|
var missingApiKeyError_1 = require_missingApiKeyError();
|
|
21933
21963
|
var mask_1 = require_mask();
|
|
21934
21964
|
var chalk_1 = __importDefault(require_source());
|
|
21935
|
-
var
|
|
21965
|
+
var server_concurrency_converter_1 = require_server_concurrency_converter();
|
|
21936
21966
|
exports.makeCoreRequestsWithCache = utils34.general.cachify(makeCoreRequests, () => "default");
|
|
21937
21967
|
function makeCoreRequests({ fetch: fetch2, logger: defaultLogger } = {}) {
|
|
21938
21968
|
const mainLogger = (0, logger_1.makeLogger)({ logger: defaultLogger, format: { label: "core-requests" } });
|
|
@@ -22278,7 +22308,6 @@ var require_requests = __commonJS({
|
|
|
22278
22308
|
return result;
|
|
22279
22309
|
}
|
|
22280
22310
|
async function getAccountInfo({ settings, logger = mainLogger }) {
|
|
22281
|
-
var _a, _b;
|
|
22282
22311
|
logger = logger.extend(mainLogger, { tags: [`core-request-${utils34.general.shortid()}`] });
|
|
22283
22312
|
const req2 = (0, req_eyes_1.makeReqEyes)({ settings, fetch: fetch2, logger });
|
|
22284
22313
|
logger.log('Request "getAccountInfo" called with settings', settings);
|
|
@@ -22307,10 +22336,7 @@ var require_requests = __commonJS({
|
|
|
22307
22336
|
},
|
|
22308
22337
|
supportedEnvironmentsUrl,
|
|
22309
22338
|
uploadUrl,
|
|
22310
|
-
serverConcurrency:
|
|
22311
|
-
sessionConcurrency: (_a = serverConcurrency === null || serverConcurrency === void 0 ? void 0 : serverConcurrency.sessionConcurrencyLimit) !== null && _a !== void 0 ? _a : constants_1.DEFAULT_CONCURRENCY,
|
|
22312
|
-
componentConcurrency: (_b = serverConcurrency === null || serverConcurrency === void 0 ? void 0 : serverConcurrency.componentConcurrencyLimit) !== null && _b !== void 0 ? _b : constants_1.DEFAULT_CONCURRENCY
|
|
22313
|
-
},
|
|
22339
|
+
serverConcurrency: (0, server_concurrency_converter_1.handleConcurrency)(serverConcurrency),
|
|
22314
22340
|
...rest
|
|
22315
22341
|
};
|
|
22316
22342
|
logger.mask(result.ufgServer.accessToken);
|
|
@@ -72211,6 +72237,25 @@ var require_scroll_into_viewport = __commonJS({
|
|
|
72211
72237
|
}
|
|
72212
72238
|
});
|
|
72213
72239
|
|
|
72240
|
+
// ../screenshoter/src/utils/wait-handler.js
|
|
72241
|
+
var require_wait_handler = __commonJS({
|
|
72242
|
+
"../screenshoter/src/utils/wait-handler.js"(exports, module) {
|
|
72243
|
+
"use strict";
|
|
72244
|
+
init_process();
|
|
72245
|
+
init_setImmediate();
|
|
72246
|
+
init_buffer();
|
|
72247
|
+
init_setInterval();
|
|
72248
|
+
var utils34 = require_browser3();
|
|
72249
|
+
async function handleWait(wait) {
|
|
72250
|
+
if (typeof wait === "function")
|
|
72251
|
+
await wait();
|
|
72252
|
+
else
|
|
72253
|
+
await utils34.general.sleep(wait);
|
|
72254
|
+
}
|
|
72255
|
+
module.exports = handleWait;
|
|
72256
|
+
}
|
|
72257
|
+
});
|
|
72258
|
+
|
|
72214
72259
|
// ../screenshoter/src/find-image-pattern.js
|
|
72215
72260
|
var require_find_image_pattern = __commonJS({
|
|
72216
72261
|
"../screenshoter/src/find-image-pattern.js"(exports, module) {
|
|
@@ -72477,6 +72522,7 @@ var require_take_stitched_screenshot = __commonJS({
|
|
|
72477
72522
|
init_setImmediate();
|
|
72478
72523
|
init_buffer();
|
|
72479
72524
|
init_setInterval();
|
|
72525
|
+
var handleWait = require_wait_handler();
|
|
72480
72526
|
var utils34 = require_browser3();
|
|
72481
72527
|
var { makeImage } = require_dist();
|
|
72482
72528
|
var makeTakeViewportScreenshot = require_take_viewport_screenshot();
|
|
@@ -72506,10 +72552,7 @@ var require_take_stitched_screenshot = __commonJS({
|
|
|
72506
72552
|
const preMoveOffset = await scroller.getInnerOffset();
|
|
72507
72553
|
const postMoveOffset = await scroller.moveTo(initialOffset);
|
|
72508
72554
|
const expectedRemainingOffset = utils34.geometry.offsetNegative(initialOffset, postMoveOffset);
|
|
72509
|
-
|
|
72510
|
-
await wait();
|
|
72511
|
-
else
|
|
72512
|
-
await utils34.general.sleep(wait);
|
|
72555
|
+
await handleWait(wait);
|
|
72513
72556
|
const contentSize = await scroller.getContentSize({ lazyLoad });
|
|
72514
72557
|
logger.verbose(
|
|
72515
72558
|
"preMoveOffset",
|
|
@@ -72588,7 +72631,7 @@ var require_take_stitched_screenshot = __commonJS({
|
|
|
72588
72631
|
};
|
|
72589
72632
|
logger.verbose("Actual offset is", actualOffset, ", remaining offset is", remainingOffset);
|
|
72590
72633
|
logger.verbose("cropPartRegion is", cropPartRegion);
|
|
72591
|
-
await
|
|
72634
|
+
await handleWait(wait);
|
|
72592
72635
|
if (utils34.geometry.isEmpty(cropPartRegion) || !utils34.geometry.isIntersected(cropRegion, cropPartRegion))
|
|
72593
72636
|
continue;
|
|
72594
72637
|
logger.verbose("Getting image...");
|
|
@@ -72633,6 +72676,7 @@ var require_take_simple_screenshot = __commonJS({
|
|
|
72633
72676
|
init_setImmediate();
|
|
72634
72677
|
init_buffer();
|
|
72635
72678
|
init_setInterval();
|
|
72679
|
+
var handleWait = require_wait_handler();
|
|
72636
72680
|
var utils34 = require_browser3();
|
|
72637
72681
|
var makeTakeViewportScreenshot = require_take_viewport_screenshot();
|
|
72638
72682
|
async function takeSimpleScreenshot({
|
|
@@ -72648,10 +72692,7 @@ var require_take_simple_screenshot = __commonJS({
|
|
|
72648
72692
|
logger.verbose("Taking image of...");
|
|
72649
72693
|
const driver = context.driver;
|
|
72650
72694
|
const takeViewportScreenshot = await makeTakeViewportScreenshot({ logger, driver, stabilization, debug });
|
|
72651
|
-
|
|
72652
|
-
await wait();
|
|
72653
|
-
else
|
|
72654
|
-
await utils34.general.sleep(wait);
|
|
72695
|
+
await handleWait(wait);
|
|
72655
72696
|
const image = await takeViewportScreenshot({ captureStatusBar, keepNavigationBar });
|
|
72656
72697
|
if (region) {
|
|
72657
72698
|
const cropRegion = await driver.getRegionInViewport(context, region);
|
|
@@ -106818,6 +106859,7 @@ var require_open_eyes4 = __commonJS({
|
|
|
106818
106859
|
var extract_git_info_1 = require_extract_git_info();
|
|
106819
106860
|
var types_1 = require_types5();
|
|
106820
106861
|
function makeOpenEyes({ type: defaultType = "classic", clients, batch, removeDuplicateTests, core, cores, spec, environment, logger: mainLogger, asyncCache, concurrency, useServerConcurrency = false, cwd = process.cwd() }) {
|
|
106862
|
+
let shouldPrintConcurrencyWarning = true;
|
|
106821
106863
|
return async function openEyes({ type = defaultType, settings: openSettings, config, target, logger = mainLogger }) {
|
|
106822
106864
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
106823
106865
|
var _1, _2, _3, _4, _5;
|
|
@@ -106884,20 +106926,19 @@ var require_open_eyes4 = __commonJS({
|
|
|
106884
106926
|
const componentConcurrency = account.serverConcurrency.componentConcurrency;
|
|
106885
106927
|
if (useServerConcurrency) {
|
|
106886
106928
|
if (concurrency && concurrency < componentConcurrency) {
|
|
106887
|
-
|
|
106929
|
+
if (shouldPrintConcurrencyWarning) {
|
|
106930
|
+
logger.console.warn(`Eyes Storybook "testConcurrency" explicitly set to ${concurrency}, which is lower than your available limit of ${componentConcurrency}. Using the lower value as requested.`);
|
|
106931
|
+
}
|
|
106888
106932
|
settings.sessionConcurrency = concurrency;
|
|
106889
106933
|
} else {
|
|
106890
106934
|
settings.sessionConcurrency = componentConcurrency;
|
|
106891
|
-
if (concurrency) {
|
|
106935
|
+
if (concurrency && shouldPrintConcurrencyWarning) {
|
|
106892
106936
|
logger.console.warn(`Overriding user-defined "testConcurrency". Using organization concurrency limit from Eyes server: ${settings.sessionConcurrency}`);
|
|
106893
106937
|
}
|
|
106894
106938
|
}
|
|
106939
|
+
shouldPrintConcurrencyWarning = false;
|
|
106895
106940
|
} else {
|
|
106896
|
-
|
|
106897
|
-
settings.sessionConcurrency = concurrency;
|
|
106898
|
-
} else {
|
|
106899
|
-
settings.sessionConcurrency = types_1.DEFAULT_CONCURRENCY;
|
|
106900
|
-
}
|
|
106941
|
+
settings.sessionConcurrency = concurrency !== null && concurrency !== void 0 ? concurrency : types_1.DEFAULT_CONCURRENCY;
|
|
106901
106942
|
}
|
|
106902
106943
|
void core.logEvent({
|
|
106903
106944
|
settings: {
|
|
@@ -107531,7 +107572,7 @@ var require_package3 = __commonJS({
|
|
|
107531
107572
|
"../core/package.json"(exports, module) {
|
|
107532
107573
|
module.exports = {
|
|
107533
107574
|
name: "@applitools/core",
|
|
107534
|
-
version: "4.
|
|
107575
|
+
version: "4.49.0",
|
|
107535
107576
|
homepage: "https://applitools.com",
|
|
107536
107577
|
bugs: {
|
|
107537
107578
|
url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
|
|
@@ -114363,7 +114404,7 @@ var require_dist9 = __commonJS({
|
|
|
114363
114404
|
return result;
|
|
114364
114405
|
};
|
|
114365
114406
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
114366
|
-
exports.logs = exports.formatters = void 0;
|
|
114407
|
+
exports.MissingApiKeyError = exports.logs = exports.formatters = void 0;
|
|
114367
114408
|
__exportStar(require_types5(), exports);
|
|
114368
114409
|
__exportStar(require_core4(), exports);
|
|
114369
114410
|
__exportStar(require_core_server(), exports);
|
|
@@ -114372,6 +114413,10 @@ var require_dist9 = __commonJS({
|
|
|
114372
114413
|
__exportStar(require_debug2(), exports);
|
|
114373
114414
|
exports.formatters = __importStar(require_format_results());
|
|
114374
114415
|
exports.logs = __importStar(require_logs());
|
|
114416
|
+
var core_base_1 = require_dist2();
|
|
114417
|
+
Object.defineProperty(exports, "MissingApiKeyError", { enumerable: true, get: function() {
|
|
114418
|
+
return core_base_1.MissingApiKeyError;
|
|
114419
|
+
} });
|
|
114375
114420
|
}
|
|
114376
114421
|
});
|
|
114377
114422
|
|
|
@@ -114380,7 +114425,7 @@ var require_package4 = __commonJS({
|
|
|
114380
114425
|
"../eyes/package.json"(exports, module) {
|
|
114381
114426
|
module.exports = {
|
|
114382
114427
|
name: "@applitools/eyes",
|
|
114383
|
-
version: "1.36.
|
|
114428
|
+
version: "1.36.9",
|
|
114384
114429
|
keywords: [
|
|
114385
114430
|
"applitools",
|
|
114386
114431
|
"eyes",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.9",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"applitools",
|
|
6
6
|
"browser",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"test": "run --top-level mocha './test/**/*.spec.ts'"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@applitools/eyes": "1.36.
|
|
51
|
+
"@applitools/eyes": "1.36.9"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/node": "^12.20.55",
|