playwright-ts-automationframework 1.1.22 → 1.1.23

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.
@@ -175,17 +175,16 @@ var Assertion = /** @class */ (function (_super) {
175
175
  _a.sent();
176
176
  _a.label = 2;
177
177
  case 2: return [4 /*yield*/, control.controlLocator.isHidden().then(function (value) { return __awaiter(_this, void 0, void 0, function () {
178
- var verificationResult, logText, _a;
179
- return __generator(this, function (_b) {
180
- switch (_b.label) {
178
+ var verificationResult, logText;
179
+ return __generator(this, function (_a) {
180
+ switch (_a.label) {
181
181
  case 0:
182
182
  verificationResult = value === true ? "PASSED" : "FAILED";
183
183
  logText = "VERIFICATION: ".concat(verificationResult, ". '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: false");
184
184
  (0, logs_core_1.logVerification)(logText);
185
- _a = test_1.expect;
186
- return [4 /*yield*/, control.controlLocator.isHidden()];
185
+ return [4 /*yield*/, (0, test_1.expect)(element, logText).toBeHidden()];
187
186
  case 1:
188
- _a.apply(void 0, [_b.sent(), logText]).toBe(true);
187
+ _a.sent();
189
188
  return [2 /*return*/];
190
189
  }
191
190
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",