playwright-ts-automationframework 1.1.59 → 1.1.60
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.
|
@@ -40,7 +40,7 @@ export declare class Assertion extends Actions {
|
|
|
40
40
|
*
|
|
41
41
|
* loginBtn = new WebControl(this.page.locator('#login'), 'Login button');
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* verifyIsDisplayed(loginBtn, true);
|
|
44
44
|
*/
|
|
45
45
|
verifyIsDisplayed(control: WebControl, expectedIsDisplayed?: boolean): Promise<void>;
|
|
46
46
|
/**
|
|
@@ -144,7 +144,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
144
144
|
*
|
|
145
145
|
* loginBtn = new WebControl(this.page.locator('#login'), 'Login button');
|
|
146
146
|
*
|
|
147
|
-
*
|
|
147
|
+
* verifyIsDisplayed(loginBtn, true);
|
|
148
148
|
*/
|
|
149
149
|
Assertion.prototype.verifyIsDisplayed = function (control_1) {
|
|
150
150
|
return __awaiter(this, arguments, void 0, function (control, expectedIsDisplayed) {
|
|
@@ -315,23 +315,20 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
315
315
|
*/
|
|
316
316
|
Assertion.prototype.verifyIsEnabled = function (control_1) {
|
|
317
317
|
return __awaiter(this, arguments, void 0, function (control, expValue) {
|
|
318
|
+
var value, verificationResult, logText;
|
|
318
319
|
if (expValue === void 0) { expValue = true; }
|
|
319
320
|
return __generator(this, function (_a) {
|
|
320
321
|
switch (_a.label) {
|
|
321
|
-
case 0:
|
|
322
|
-
if (!(expValue == true)) return [3 /*break*/, 2];
|
|
323
|
-
return [4 /*yield*/, this.page.waitForLoadState("load")];
|
|
322
|
+
case 0: return [4 /*yield*/, this.page.waitForLoadState("load")];
|
|
324
323
|
case 1:
|
|
325
324
|
_a.sent();
|
|
326
|
-
|
|
327
|
-
case 2:
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
case 3:
|
|
334
|
-
_a.sent();
|
|
325
|
+
return [4 /*yield*/, control.controlLocator.first().isEnabled()];
|
|
326
|
+
case 2:
|
|
327
|
+
value = _a.sent();
|
|
328
|
+
verificationResult = value === expValue ? "✅ PASSED" : "❌ FAILED";
|
|
329
|
+
logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' enabled status is: '").concat(value, "' Expected: ").concat(expValue);
|
|
330
|
+
(0, logs_core_1.logVerification)(logText);
|
|
331
|
+
test_1.expect.soft(value, logText).toBe(expValue);
|
|
335
332
|
return [2 /*return*/];
|
|
336
333
|
}
|
|
337
334
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright-ts-automationframework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.60",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"ignore-case": "^0.1.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@playwright/test": "^1.53.
|
|
23
|
-
"@types/node": "^24.0.
|
|
22
|
+
"@playwright/test": "^1.53.2",
|
|
23
|
+
"@types/node": "^24.0.8",
|
|
24
24
|
"log4js": "^6.9.1",
|
|
25
|
-
"nodemailer": "^7.0.
|
|
26
|
-
"npm": "^11.4.
|
|
25
|
+
"nodemailer": "^7.0.4",
|
|
26
|
+
"npm": "^11.4.2",
|
|
27
27
|
"path": "^0.12.7",
|
|
28
28
|
"typescript": "^5.8.3"
|
|
29
29
|
},
|