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
|
|
179
|
-
return __generator(this, function (
|
|
180
|
-
switch (
|
|
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
|
-
|
|
186
|
-
return [4 /*yield*/, control.controlLocator.isHidden()];
|
|
185
|
+
return [4 /*yield*/, (0, test_1.expect)(element, logText).toBeHidden()];
|
|
187
186
|
case 1:
|
|
188
|
-
_a.
|
|
187
|
+
_a.sent();
|
|
189
188
|
return [2 /*return*/];
|
|
190
189
|
}
|
|
191
190
|
});
|