playwright-ts-automationframework 1.1.21 → 1.1.22
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.
- package/lib/core/assertion.core.js +17 -6
- package/package.json +1 -1
|
@@ -163,6 +163,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
163
163
|
Assertion.prototype.verifyIsNotDisplayed = function (control_1) {
|
|
164
164
|
return __awaiter(this, arguments, void 0, function (control, isAlreadyHidden) {
|
|
165
165
|
var element;
|
|
166
|
+
var _this = this;
|
|
166
167
|
if (isAlreadyHidden === void 0) { isAlreadyHidden = false; }
|
|
167
168
|
return __generator(this, function (_a) {
|
|
168
169
|
switch (_a.label) {
|
|
@@ -173,12 +174,22 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
173
174
|
case 1:
|
|
174
175
|
_a.sent();
|
|
175
176
|
_a.label = 2;
|
|
176
|
-
case 2: return [4 /*yield*/, control.controlLocator.isHidden().then(function (value) {
|
|
177
|
-
var verificationResult
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
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) {
|
|
181
|
+
case 0:
|
|
182
|
+
verificationResult = value === true ? "PASSED" : "FAILED";
|
|
183
|
+
logText = "VERIFICATION: ".concat(verificationResult, ". '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: false");
|
|
184
|
+
(0, logs_core_1.logVerification)(logText);
|
|
185
|
+
_a = test_1.expect;
|
|
186
|
+
return [4 /*yield*/, control.controlLocator.isHidden()];
|
|
187
|
+
case 1:
|
|
188
|
+
_a.apply(void 0, [_b.sent(), logText]).toBe(true);
|
|
189
|
+
return [2 /*return*/];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
}); })];
|
|
182
193
|
case 3:
|
|
183
194
|
_a.sent();
|
|
184
195
|
return [2 /*return*/];
|