playwright-ts-automationframework 1.1.23 → 1.1.24
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.
|
@@ -333,6 +333,7 @@ export declare class Actions extends BasePage {
|
|
|
333
333
|
sleep(timeInSeconds?: number): Promise<void>;
|
|
334
334
|
waitForPageTimeout(timeoutInSeconds?: number): Promise<void>;
|
|
335
335
|
waitForNetworkIdle(): Promise<void>;
|
|
336
|
+
refreshWebPage(): Promise<void>;
|
|
336
337
|
/**
|
|
337
338
|
* Close the browser instance
|
|
338
339
|
*
|
package/lib/core/actions.core.js
CHANGED
|
@@ -877,6 +877,18 @@ var Actions = /** @class */ (function (_super) {
|
|
|
877
877
|
});
|
|
878
878
|
});
|
|
879
879
|
};
|
|
880
|
+
Actions.prototype.refreshWebPage = function () {
|
|
881
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
882
|
+
return __generator(this, function (_a) {
|
|
883
|
+
switch (_a.label) {
|
|
884
|
+
case 0: return [4 /*yield*/, this.page.reload()];
|
|
885
|
+
case 1:
|
|
886
|
+
_a.sent();
|
|
887
|
+
return [2 /*return*/];
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
});
|
|
891
|
+
};
|
|
880
892
|
/**
|
|
881
893
|
* Close the browser instance
|
|
882
894
|
*
|
|
@@ -180,7 +180,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
180
180
|
switch (_a.label) {
|
|
181
181
|
case 0:
|
|
182
182
|
verificationResult = value === true ? "PASSED" : "FAILED";
|
|
183
|
-
logText = "VERIFICATION: ".concat(verificationResult, ". '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected:
|
|
183
|
+
logText = "VERIFICATION: ".concat(verificationResult, ". '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: true");
|
|
184
184
|
(0, logs_core_1.logVerification)(logText);
|
|
185
185
|
return [4 /*yield*/, (0, test_1.expect)(element, logText).toBeHidden()];
|
|
186
186
|
case 1:
|