playwright-ts-automationframework 1.1.44 → 1.1.46

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