playwright-ts-automationframework 1.1.44 → 1.1.45

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.
@@ -171,27 +171,22 @@ var Assertion = /** @class */ (function (_super) {
171
171
  switch (_a.label) {
172
172
  case 0:
173
173
  element = control.controlLocator;
174
- if (!!isAlreadyHidden) return [3 /*break*/, 2];
175
- return [4 /*yield*/, element.waitFor({ state: "hidden" })];
174
+ return [4 /*yield*/, control.controlLocator.isHidden().then(function (value) { return __awaiter(_this, void 0, void 0, function () {
175
+ var verificationResult, logText;
176
+ return __generator(this, function (_a) {
177
+ switch (_a.label) {
178
+ case 0:
179
+ verificationResult = value === true ? "PASSED" : "FAILED";
180
+ logText = "VERIFICATION: ".concat(verificationResult, ". '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: true");
181
+ (0, logs_core_1.logVerification)(logText);
182
+ return [4 /*yield*/, (0, test_1.expect)(element, logText).toBeHidden()];
183
+ case 1:
184
+ _a.sent();
185
+ return [2 /*return*/];
186
+ }
187
+ });
188
+ }); })];
176
189
  case 1:
177
- _a.sent();
178
- _a.label = 2;
179
- case 2: return [4 /*yield*/, control.controlLocator.isHidden().then(function (value) { return __awaiter(_this, void 0, void 0, function () {
180
- var verificationResult, logText;
181
- return __generator(this, function (_a) {
182
- switch (_a.label) {
183
- case 0:
184
- verificationResult = value === true ? "PASSED" : "FAILED";
185
- logText = "VERIFICATION: ".concat(verificationResult, ". '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: true");
186
- (0, logs_core_1.logVerification)(logText);
187
- return [4 /*yield*/, (0, test_1.expect)(element, logText).toBeHidden()];
188
- case 1:
189
- _a.sent();
190
- return [2 /*return*/];
191
- }
192
- });
193
- }); })];
194
- case 3:
195
190
  _a.sent();
196
191
  return [2 /*return*/];
197
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",