playwright-ts-automationframework 1.1.35 → 1.1.36

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.
@@ -381,7 +381,10 @@ var Actions = /** @class */ (function (_super) {
381
381
  case 0: return [4 /*yield*/, control.controlLocator.first().isChecked()];
382
382
  case 1:
383
383
  isChecked = _a.sent();
384
- (0, logs_core_1.logConsole)("'".concat(control.controlDescription, "' checkbox is ").concat(isChecked) ? 'selected' : 'not selected');
384
+ if (isChecked)
385
+ (0, logs_core_1.logConsole)("".concat(control.controlDescription, " is selected"));
386
+ else
387
+ (0, logs_core_1.logConsole)("".concat(control.controlDescription, " is NOT selected"));
385
388
  return [2 /*return*/, isChecked];
386
389
  }
387
390
  });
@@ -404,7 +407,10 @@ var Actions = /** @class */ (function (_super) {
404
407
  return __generator(this, function (_a) {
405
408
  switch (_a.label) {
406
409
  case 0: return [4 /*yield*/, control.controlLocator.first().isEnabled().then(function (value) {
407
- (0, logs_core_1.logConsole)("'".concat(control.controlDescription, "' is ").concat(value) ? 'enabled' : 'not enabled');
410
+ if (value)
411
+ (0, logs_core_1.logConsole)("".concat(control.controlDescription, " is enabled"));
412
+ else
413
+ (0, logs_core_1.logConsole)("".concat(control.controlDescription, " is NOT enabled"));
408
414
  return value;
409
415
  })];
410
416
  case 1: return [2 /*return*/, _a.sent()];
@@ -432,7 +438,10 @@ var Actions = /** @class */ (function (_super) {
432
438
  case 0: return [4 /*yield*/, control.controlLocator.first().isVisible()];
433
439
  case 1:
434
440
  isVisible = _a.sent();
435
- (0, logs_core_1.logConsole)("'".concat(control.controlDescription, "' is ").concat(isVisible) ? 'displayed' : 'not displayed');
441
+ if (isVisible)
442
+ (0, logs_core_1.logConsole)("".concat(control.controlDescription, " is displayed"));
443
+ else
444
+ (0, logs_core_1.logConsole)("".concat(control.controlDescription, " is NOT displayed"));
436
445
  return [2 /*return*/, isVisible];
437
446
  }
438
447
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.35",
3
+ "version": "1.1.36",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",