@applitools/eyes-browser 1.0.4 → 1.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-browser@1.0.4...js/eyes-browser@1.0.5) (2024-01-16)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/dom-snapshot bumped to 4.7.16
9
+ #### Bug Fixes
10
+
11
+ * handle unparsable values of media attribute in dom snapshot ([a2afe2e](https://github.com/applitools/eyes.sdk.javascript1/commit/a2afe2e18508f44f9c046270da0c1e09fb9aea03))
12
+ * @applitools/nml-client bumped to 1.6.4
13
+ #### Bug Fixes
14
+
15
+ * remove local environment id ([#2152](https://github.com/applitools/eyes.sdk.javascript1/issues/2152)) ([59aaeae](https://github.com/applitools/eyes.sdk.javascript1/commit/59aaeaed474fbde78b76ae7ac803960e3ecd8166))
16
+ * @applitools/core bumped to 4.6.0
17
+ #### Features
18
+
19
+ * added possibility to provide `fallbackBaselineId` in environment objects ([#2146](https://github.com/applitools/eyes.sdk.javascript1/issues/2146)) ([f0782ea](https://github.com/applitools/eyes.sdk.javascript1/commit/f0782ea4c38935f97fc47248ed6a5b67f87b0634))
20
+
21
+
22
+ #### Bug Fixes
23
+
24
+ * add environment variable for setting ufg server ufg ([#2147](https://github.com/applitools/eyes.sdk.javascript1/issues/2147)) ([cfc701f](https://github.com/applitools/eyes.sdk.javascript1/commit/cfc701f7a43fed0fe252d4090b9c1dc490063c76))
25
+ * remove local environment id ([#2152](https://github.com/applitools/eyes.sdk.javascript1/issues/2152)) ([59aaeae](https://github.com/applitools/eyes.sdk.javascript1/commit/59aaeaed474fbde78b76ae7ac803960e3ecd8166))
26
+
27
+
28
+
29
+ * @applitools/ec-client bumped to 1.7.22
30
+
31
+ * @applitools/core-base bumped to 1.9.0
32
+ #### Features
33
+
34
+ * added possibility to provide `fallbackBaselineId` in environment objects ([#2146](https://github.com/applitools/eyes.sdk.javascript1/issues/2146)) ([f0782ea](https://github.com/applitools/eyes.sdk.javascript1/commit/f0782ea4c38935f97fc47248ed6a5b67f87b0634))
35
+
36
+
37
+ #### Bug Fixes
38
+
39
+ * add environment variable for setting ufg server ufg ([#2147](https://github.com/applitools/eyes.sdk.javascript1/issues/2147)) ([cfc701f](https://github.com/applitools/eyes.sdk.javascript1/commit/cfc701f7a43fed0fe252d4090b9c1dc490063c76))
40
+ * @applitools/eyes bumped to 1.13.5
41
+ #### Bug Fixes
42
+
43
+ * fixed default value in `useSystemScreenshot` method of check settings ([42a773c](https://github.com/applitools/eyes.sdk.javascript1/commit/42a773cc57e8e5de528a049b376159615892003b))
44
+
45
+
46
+
47
+
3
48
  ## [1.0.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-browser@1.0.3...js/eyes-browser@1.0.4) (2024-01-02)
4
49
 
5
50
 
package/dist/index.js CHANGED
@@ -20360,7 +20360,9 @@ var require_requests = __commonJS({
20360
20360
  ignoreBaseline: settings.ignoreBaseline,
20361
20361
  saveDiffs: settings.saveDiffs,
20362
20362
  timeout: settings.abortIdleTestTimeout,
20363
- isComponentAgent: settings.isComponentTest
20363
+ isComponentAgent: settings.isComponentTest,
20364
+ fallbackExpectedOutput: settings.fallbackBaselineId
20365
+ // mapping to the right field is the api
20364
20366
  }
20365
20367
  },
20366
20368
  expected: [200, 201],
@@ -27821,9 +27823,14 @@ var require_open_eyes = __commonJS({
27821
27823
  return new Promise((resolve, reject) => {
27822
27824
  throttle(() => {
27823
27825
  return new Promise(async (done) => {
27826
+ var _a2;
27824
27827
  try {
27825
27828
  const controller = new abort_controller_1.AbortController();
27826
27829
  const eyesRequests = await requests.openEyes({ settings, logger });
27830
+ eyesRequests.test.ufgServer = {
27831
+ ...eyesRequests.test.ufgServer,
27832
+ ufgServerUrl: (_a2 = settings.ufgServerUrl) !== null && _a2 !== void 0 ? _a2 : eyesRequests.test.ufgServer.ufgServerUrl
27833
+ };
27827
27834
  resolve(utils34.general.extend(eyesRequests, {
27828
27835
  check: (0, check_1.makeCheck)({ requests: eyesRequests, signal: controller.signal, logger }),
27829
27836
  checkAndClose: (0, check_and_close_1.makeCheckAndClose)({ requests: eyesRequests, done, signal: controller.signal, logger }),
@@ -32837,7 +32844,6 @@ var require_requests2 = __commonJS({
32837
32844
  function makeNMLRequests({ settings, logger: mainLogger }) {
32838
32845
  let brokerUrl = settings.brokerUrl;
32839
32846
  const req2 = (0, req_broker_1.makeReqBroker)({ settings, logger: mainLogger });
32840
- const localEnvironmentId = utils34.general.guid();
32841
32847
  const getSupportedEnvironmentsWithCache = utils34.general.cachify(getSupportedEnvironments, () => "default");
32842
32848
  return {
32843
32849
  getSupportedEnvironments: getSupportedEnvironmentsWithCache,
@@ -32856,7 +32862,7 @@ var require_requests2 = __commonJS({
32856
32862
  const { localEnvironment, renderEnvironments, environmentSettings } = settings2.environments.reduce((result, environment) => {
32857
32863
  var _a;
32858
32864
  if (!utils34.types.has(environment, "iosDeviceInfo") && !utils34.types.has(environment, "androidDeviceInfo")) {
32859
- result.localEnvironment = { ...environment, environmentId: localEnvironmentId };
32865
+ result.localEnvironment = environment;
32860
32866
  } else {
32861
32867
  const deviceInfo = utils34.types.has(environment, "iosDeviceInfo") ? environment.iosDeviceInfo : environment.androidDeviceInfo;
32862
32868
  const orientation = deviceInfo.screenOrientation === "landscape" ? "landscapeLeft" : (_a = deviceInfo.screenOrientation) !== null && _a !== void 0 ? _a : "portrait";
@@ -35539,11 +35545,13 @@ var require_get_base_eyes = __commonJS({
35539
35545
  });
35540
35546
  return getBaseEyesWithCache;
35541
35547
  async function getBaseEyes({ settings, logger = mainLogger }) {
35548
+ var _a;
35542
35549
  logger = logger.extend(mainLogger);
35543
35550
  logger.log(`Command "getBaseEyes" is called with settings`, settings);
35544
35551
  return eyes.core.base.openEyes({
35545
35552
  settings: {
35546
35553
  ...defaultSettings,
35554
+ fallbackBaselineId: (_a = settings.environment) === null || _a === void 0 ? void 0 : _a.fallbackBaselineId,
35547
35555
  environment: { ...defaultSettings.environment, ...settings.environment }
35548
35556
  },
35549
35557
  logger
@@ -36428,6 +36436,7 @@ var require_extract_default_environments = __commonJS({
36428
36436
  const viewport = await driver.getViewport();
36429
36437
  const size = await driver.getViewportSize();
36430
36438
  environment.viewportSize = utils34.geometry.scale(size, viewport.viewportScale);
36439
+ environment.environmentId = utils34.general.guid();
36431
36440
  if (driverEnvironment.isEC)
36432
36441
  environment.ecSessionId = (_a = await driver.getSessionId()) !== null && _a !== void 0 ? _a : void 0;
36433
36442
  if (driverEnvironment.isWeb)
@@ -36531,7 +36540,7 @@ var require_open_eyes2 = __commonJS({
36531
36540
  const controller = new abort_controller_1.AbortController();
36532
36541
  const account = await core.getAccountInfo({ settings, logger });
36533
36542
  return utils34.general.extend({}, (eyes) => {
36534
- var _a2;
36543
+ var _a2, _b2, _c2;
36535
36544
  return {
36536
36545
  type: "classic",
36537
36546
  core,
@@ -36540,7 +36549,7 @@ var require_open_eyes2 = __commonJS({
36540
36549
  batchId: (_a2 = settings.batch) === null || _a2 === void 0 ? void 0 : _a2.id,
36541
36550
  keepBatchOpen: settings.keepBatchOpen,
36542
36551
  eyesServer: account.eyesServer,
36543
- ufgServer: account.ufgServer,
36552
+ ufgServer: { ...account.ufgServer, ufgServerUrl: (_b2 = settings.ufgServerUrl) !== null && _b2 !== void 0 ? _b2 : (_c2 = account.ufgServer) === null || _c2 === void 0 ? void 0 : _c2.ufgServerUrl },
36544
36553
  uploadUrl: account.uploadUrl,
36545
36554
  stitchingServiceUrl: account.stitchingServiceUrl,
36546
36555
  supportedEnvironmentsUrl: account.supportedEnvironmentsUrl,
@@ -76334,6 +76343,7 @@ var require_get_base_eyes2 = __commonJS({
76334
76343
  });
76335
76344
  return getBaseEyesWithCache;
76336
76345
  async function getBaseEyes({ settings, logger = mainLogger }) {
76346
+ var _a;
76337
76347
  logger = logger.extend(mainLogger);
76338
76348
  logger.log(`Command "getBaseEyes" is called with settings`, settings);
76339
76349
  const ufgClient = await eyes.core.getUFGClient({
@@ -76351,6 +76361,7 @@ var require_get_base_eyes2 = __commonJS({
76351
76361
  return eyes.core.base.openEyes({
76352
76362
  settings: {
76353
76363
  ...defaultSettings,
76364
+ fallbackBaselineId: (_a = settings.environment) === null || _a === void 0 ? void 0 : _a.fallbackBaselineId,
76354
76365
  environment: { ...defaultSettings.environment, ...environment, properties: settings.environment.properties }
76355
76366
  },
76356
76367
  logger
@@ -80393,20 +80404,24 @@ var require_processPagePollCjs = __commonJS({
80393
80404
  const { display: n3 } = t4.defaultView.getComputedStyle(e4), { width: r2, height: o2 } = e4.getBoundingClientRect();
80394
80405
  return "none" === n3 || 0 === r2 || 0 === o2;
80395
80406
  }, uh = function(e4) {
80396
- return Gu.toPlainObject(Gu.parse(e4.toLowerCase(), { context: "mediaQueryList" })).children.some((e5) => {
80397
- const t4 = e5.children.reduce((e6, t5) => ("Identifier" === t5.type && "and" === t5.name ? e6.push([]) : e6[e6.length - 1].push(t5), e6), [[]]);
80398
- return t4.every((e6) => {
80399
- let t5, n3;
80400
- if (1 === e6.length)
80401
- [n3] = e6;
80402
- else {
80403
- if (2 !== e6.length)
80404
- return false;
80405
- [t5, n3] = e6;
80406
- }
80407
- return !(t5 && ("Identifier" !== t5.type || !["not", "only"].includes(t5.name))) && ("MediaFeature" === n3.type || ("Identifier" === n3.type && ["all", "screen"].includes(n3.name) ? !t5 || "not" !== t5.name : t5 && "not" === t5.name));
80407
+ try {
80408
+ return Gu.toPlainObject(Gu.parse(e4.toLowerCase(), { context: "mediaQueryList" })).children.some((e5) => {
80409
+ const t4 = e5.children.reduce((e6, t5) => ("Identifier" === t5.type && "and" === t5.name ? e6.push([]) : e6[e6.length - 1].push(t5), e6), [[]]);
80410
+ return t4.every((e6) => {
80411
+ let t5, n3;
80412
+ if (1 === e6.length)
80413
+ [n3] = e6;
80414
+ else {
80415
+ if (2 !== e6.length)
80416
+ return false;
80417
+ [t5, n3] = e6;
80418
+ }
80419
+ return !(t5 && ("Identifier" !== t5.type || !["not", "only"].includes(t5.name))) && ("MediaFeature" === n3.type || ("Identifier" === n3.type && ["all", "screen"].includes(n3.name) ? !t5 || "not" !== t5.name : t5 && "not" === t5.name));
80420
+ });
80408
80421
  });
80409
- });
80422
+ } catch {
80423
+ return false;
80424
+ }
80410
80425
  }, hh = Qu, dh = Su, ph = /* @__PURE__ */ new Set(["date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week"]), mh = /^on[a-z]+$/;
80411
80426
  function fh({ attributes: e4 = {} }) {
80412
80427
  return Object.keys(e4).filter((t4) => e4[t4] && e4[t4].name);
@@ -82073,7 +82088,7 @@ creating temp style for access.`), r2 = Em(e4);
82073
82088
  function D2(e5) {
82074
82089
  return t5.defaultView && t5.defaultView.frameElement && t5.defaultView.frameElement.getAttribute(e5);
82075
82090
  }
82076
- }(t4).then((e4) => (u2("processPage end"), e4.scriptVersion = "4.7.15", e4));
82091
+ }(t4).then((e4) => (u2("processPage end"), e4.scriptVersion = "4.7.16", e4));
82077
82092
  };
82078
82093
  window[mf] = window[mf] || {};
82079
82094
  const bf = pf(gf, window[mf], ff);
@@ -83324,7 +83339,7 @@ var require_open_eyes3 = __commonJS({
83324
83339
  const controller = new abort_controller_1.AbortController();
83325
83340
  const account = await core.getAccountInfo({ settings, logger });
83326
83341
  return utils34.general.extend({}, (eyes) => {
83327
- var _a2;
83342
+ var _a2, _b2, _c2;
83328
83343
  return {
83329
83344
  type: "ufg",
83330
83345
  core,
@@ -83333,7 +83348,7 @@ var require_open_eyes3 = __commonJS({
83333
83348
  batchId: (_a2 = settings.batch) === null || _a2 === void 0 ? void 0 : _a2.id,
83334
83349
  keepBatchOpen: settings.keepBatchOpen,
83335
83350
  eyesServer: account.eyesServer,
83336
- ufgServer: account.ufgServer,
83351
+ ufgServer: { ...account.ufgServer, ufgServerUrl: (_b2 = settings.ufgServerUrl) !== null && _b2 !== void 0 ? _b2 : (_c2 = account.ufgServer) === null || _c2 === void 0 ? void 0 : _c2.ufgServerUrl },
83337
83352
  uploadUrl: account.uploadUrl,
83338
83353
  stitchingServiceUrl: account.stitchingServiceUrl,
83339
83354
  supportedEnvironmentsUrl: account.supportedEnvironmentsUrl,
@@ -83873,8 +83888,8 @@ var require_open_eyes4 = __commonJS({
83873
83888
  var utils34 = __importStar(require_browser3());
83874
83889
  function makeOpenEyes({ type: defaultType = "classic", clients, batch, core, cores, spec, environment, logger: mainLogger, asyncCache }) {
83875
83890
  return async function openEyes({ type = defaultType, settings, config, target, logger = mainLogger }) {
83876
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
83877
- var _v, _w, _x, _y;
83891
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
83892
+ var _w, _x, _y, _z;
83878
83893
  logger = logger.extend(mainLogger, { tags: [`eyes-${type}-${utils34.general.shortid()}`] });
83879
83894
  settings = { ...config === null || config === void 0 ? void 0 : config.open, ...settings };
83880
83895
  (_a = settings.userTestId) !== null && _a !== void 0 ? _a : settings.userTestId = `${settings.testName}--${utils34.general.guid()}`;
@@ -83882,16 +83897,17 @@ var require_open_eyes4 = __commonJS({
83882
83897
  (_e = settings.apiKey) !== null && _e !== void 0 ? _e : settings.apiKey = utils34.general.getEnvValue("API_KEY");
83883
83898
  (_f = settings.useDnsCache) !== null && _f !== void 0 ? _f : settings.useDnsCache = utils34.general.getEnvValue("USE_DNS_CACHE", "boolean");
83884
83899
  settings.batch = { ...batch, ...settings.batch };
83885
- (_g = (_v = settings.batch).id) !== null && _g !== void 0 ? _g : _v.id = (_h = utils34.general.getEnvValue("BATCH_ID")) !== null && _h !== void 0 ? _h : `generated-${utils34.general.guid()}`;
83886
- (_j = (_w = settings.batch).name) !== null && _j !== void 0 ? _j : _w.name = utils34.general.getEnvValue("BATCH_NAME");
83887
- (_k = (_x = settings.batch).sequenceName) !== null && _k !== void 0 ? _k : _x.sequenceName = utils34.general.getEnvValue("BATCH_SEQUENCE");
83888
- (_l = (_y = settings.batch).notifyOnCompletion) !== null && _l !== void 0 ? _l : _y.notifyOnCompletion = utils34.general.getEnvValue("BATCH_NOTIFY", "boolean");
83900
+ (_g = (_w = settings.batch).id) !== null && _g !== void 0 ? _g : _w.id = (_h = utils34.general.getEnvValue("BATCH_ID")) !== null && _h !== void 0 ? _h : `generated-${utils34.general.guid()}`;
83901
+ (_j = (_x = settings.batch).name) !== null && _j !== void 0 ? _j : _x.name = utils34.general.getEnvValue("BATCH_NAME");
83902
+ (_k = (_y = settings.batch).sequenceName) !== null && _k !== void 0 ? _k : _y.sequenceName = utils34.general.getEnvValue("BATCH_SEQUENCE");
83903
+ (_l = (_z = settings.batch).notifyOnCompletion) !== null && _l !== void 0 ? _l : _z.notifyOnCompletion = utils34.general.getEnvValue("BATCH_NOTIFY", "boolean");
83889
83904
  (_m = settings.keepBatchOpen) !== null && _m !== void 0 ? _m : settings.keepBatchOpen = utils34.general.getEnvValue("DONT_CLOSE_BATCHES", "boolean");
83890
83905
  (_o = settings.branchName) !== null && _o !== void 0 ? _o : settings.branchName = utils34.general.getEnvValue("BRANCH");
83891
83906
  (_p = settings.parentBranchName) !== null && _p !== void 0 ? _p : settings.parentBranchName = utils34.general.getEnvValue("PARENT_BRANCH");
83892
83907
  (_q = settings.baselineBranchName) !== null && _q !== void 0 ? _q : settings.baselineBranchName = utils34.general.getEnvValue("BASELINE_BRANCH");
83893
- (_r = settings.ignoreBaseline) !== null && _r !== void 0 ? _r : settings.ignoreBaseline = false;
83894
- (_s = settings.compareWithParentBranch) !== null && _s !== void 0 ? _s : settings.compareWithParentBranch = false;
83908
+ (_r = settings.ufgServerUrl) !== null && _r !== void 0 ? _r : settings.ufgServerUrl = utils34.general.getEnvValue("UFG_SERVER_URL");
83909
+ (_s = settings.ignoreBaseline) !== null && _s !== void 0 ? _s : settings.ignoreBaseline = false;
83910
+ (_t = settings.compareWithParentBranch) !== null && _t !== void 0 ? _t : settings.compareWithParentBranch = false;
83895
83911
  const driver = target && await (0, driver_1.makeDriver)({ spec, driver: target, logger, customConfig: settings });
83896
83912
  const driverEnvironment = await (driver === null || driver === void 0 ? void 0 : driver.getEnvironment());
83897
83913
  const driverUrl = await (driver === null || driver === void 0 ? void 0 : driver.getDriverUrl());
@@ -83902,7 +83918,7 @@ var require_open_eyes4 = __commonJS({
83902
83918
  event: {
83903
83919
  type: "openEyes",
83904
83920
  userTestId: settings.userTestId,
83905
- concurrency: (_t = cores === null || cores === void 0 ? void 0 : cores[type].concurrency) !== null && _t !== void 0 ? _t : core.concurrency,
83921
+ concurrency: (_u = cores === null || cores === void 0 ? void 0 : cores[type].concurrency) !== null && _u !== void 0 ? _u : core.concurrency,
83906
83922
  environment,
83907
83923
  driver: {
83908
83924
  deviceName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.deviceName,
@@ -83910,7 +83926,7 @@ var require_open_eyes4 = __commonJS({
83910
83926
  browserVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.browserVersion,
83911
83927
  platformName: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformName,
83912
83928
  platformVersion: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.platformVersion,
83913
- isApplitoolsLib: (_u = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _u === void 0 ? void 0 : _u.instrumented,
83929
+ isApplitoolsLib: (_v = driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.applitoolsLib) === null || _v === void 0 ? void 0 : _v.instrumented,
83914
83930
  isEC: driverEnvironment === null || driverEnvironment === void 0 ? void 0 : driverEnvironment.isEC
83915
83931
  },
83916
83932
  driverUrl
@@ -84195,7 +84211,7 @@ var require_make_manager = __commonJS({
84195
84211
  var _g;
84196
84212
  logger = logger.extend(mainLogger, { tags: [`manager-${type}-${utils34.general.shortid()}`] });
84197
84213
  settings !== null && settings !== void 0 ? settings : settings = {};
84198
- (_a = settings.concurrency) !== null && _a !== void 0 ? _a : settings.concurrency = (_b = utils34.general.getEnvValue("CONCURRENCY", "number")) !== null && _b !== void 0 ? _b : utils34.types.isInteger(settings.legacyConcurrency) ? settings.legacyConcurrency * 5 : 5;
84214
+ (_a = settings.concurrency) !== null && _a !== void 0 ? _a : settings.concurrency = (_b = utils34.general.getEnvValue("CONCURRENCY", "number")) !== null && _b !== void 0 ? _b : utils34.types.isInteger(settings.legacyConcurrency) ? settings.legacyConcurrency * 5 : 100;
84199
84215
  (_c = settings.batch) !== null && _c !== void 0 ? _c : settings.batch = {};
84200
84216
  (_d = (_g = settings.batch).id) !== null && _d !== void 0 ? _d : _g.id = (_e = utils34.general.getEnvValue("BATCH_ID")) !== null && _e !== void 0 ? _e : `generated-${utils34.general.guid()}`;
84201
84217
  (_f = settings.agentId) !== null && _f !== void 0 ? _f : settings.agentId = type === "ufg" ? defaultAgentId === null || defaultAgentId === void 0 ? void 0 : defaultAgentId.replace(/(\/\d)/, ".visualgrid$1") : defaultAgentId;
@@ -84401,7 +84417,7 @@ var require_package2 = __commonJS({
84401
84417
  "../core/package.json"(exports, module) {
84402
84418
  module.exports = {
84403
84419
  name: "@applitools/core",
84404
- version: "4.5.2",
84420
+ version: "4.6.0",
84405
84421
  homepage: "https://applitools.com",
84406
84422
  bugs: {
84407
84423
  url: "https://github.com/applitools/eyes.sdk.javascript1/issues"
@@ -88142,7 +88158,7 @@ var require_package3 = __commonJS({
88142
88158
  "../eyes/package.json"(exports, module) {
88143
88159
  module.exports = {
88144
88160
  name: "@applitools/eyes",
88145
- version: "1.13.4",
88161
+ version: "1.13.5",
88146
88162
  keywords: [
88147
88163
  "applitools",
88148
88164
  "eyes",
@@ -90054,7 +90070,7 @@ var CheckSettingsAutomationFluent = class extends CheckSettingsBaseFluent {
90054
90070
  visualGridOptions(options) {
90055
90071
  return this.ufgOptions(options);
90056
90072
  }
90057
- useSystemScreenshot(useSystemScreenshot) {
90073
+ useSystemScreenshot(useSystemScreenshot = true) {
90058
90074
  this._settings.useSystemScreenshot = useSystemScreenshot;
90059
90075
  return this;
90060
90076
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-browser",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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.13.4"
51
+ "@applitools/eyes": "1.13.5"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "^12.20.55",
@@ -204,7 +204,7 @@ export declare class CheckSettingsAutomationFluent<TSpec extends Core.SpecType =
204
204
  visualGridOptions(options: {
205
205
  [key: string]: any;
206
206
  }): this;
207
- useSystemScreenshot(useSystemScreenshot: boolean): this;
207
+ useSystemScreenshot(useSystemScreenshot?: boolean): this;
208
208
  timeout(timeout: number): this;
209
209
  waitBeforeCapture(waitBeforeCapture: number): this;
210
210
  lazyLoad(options?: LazyLoadOptions | boolean): this;