playwright-ts-automationframework 1.1.62 → 1.1.64
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.
|
@@ -18,6 +18,7 @@ export declare class Assertion extends Actions {
|
|
|
18
18
|
* verifyIsEquals("Invalid username", "Invalid username");
|
|
19
19
|
*/
|
|
20
20
|
verifyIsEquals(object1: any, object2: any, controlDescription?: string): void;
|
|
21
|
+
verifyIsNotEquals(object1: any, object2: any, controlDescription?: string): void;
|
|
21
22
|
verifyIsEqualIgnorecase(object1: any, object2: any, controlDescription?: string, caseInsensitive?: boolean): void;
|
|
22
23
|
/**
|
|
23
24
|
* Verify first value contains substring as second.
|
|
@@ -86,6 +86,18 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
86
86
|
throw error1;
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
+
Assertion.prototype.verifyIsNotEquals = function (object1, object2, controlDescription) {
|
|
90
|
+
if (controlDescription === void 0) { controlDescription = ""; }
|
|
91
|
+
try {
|
|
92
|
+
var verificationResult = object1 != object2 ? "✅ PASSED" : "❌ FAILED";
|
|
93
|
+
(0, logs_core_1.logVerification)("VERIFICATION: ".concat(verificationResult, ". ").concat(controlDescription, " Expected: '").concat(object1, "' is NOT equals Actual: '").concat(object2, "'"));
|
|
94
|
+
test_1.expect.soft(object1).not.toEqual(object2);
|
|
95
|
+
}
|
|
96
|
+
catch (error1) {
|
|
97
|
+
(0, logs_core_1.logError)("VERIFICATION: '❌ FAILED'. Expected: '" + object1 + "' Actual: '" + object2 + "'");
|
|
98
|
+
throw error1;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
89
101
|
Assertion.prototype.verifyIsEqualIgnorecase = function (object1, object2, controlDescription, caseInsensitive) {
|
|
90
102
|
if (controlDescription === void 0) { controlDescription = ""; }
|
|
91
103
|
if (caseInsensitive === void 0) { caseInsensitive = false; }
|
|
@@ -158,7 +170,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
158
170
|
_a.sent();
|
|
159
171
|
return [4 /*yield*/, this.isDisplayed(control).then(function (value) {
|
|
160
172
|
var verificationResult = value === expectedIsDisplayed ? "✅ PASSED" : "❌ FAILED";
|
|
161
|
-
var logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' displayed status is '").concat(value, "' Expected: ").concat(expectedIsDisplayed);
|
|
173
|
+
var logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' displayed status is '").concat(value, "' Expected: '").concat(expectedIsDisplayed, "'");
|
|
162
174
|
(0, logs_core_1.logVerification)(logText);
|
|
163
175
|
test_1.expect.soft(value, logText).toBe(expectedIsDisplayed);
|
|
164
176
|
}, function (reason) {
|
|
@@ -201,7 +213,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
201
213
|
var verificationResult, logText;
|
|
202
214
|
return __generator(this, function (_a) {
|
|
203
215
|
verificationResult = value === true ? "✅ PASSED" : "❌ FAILED";
|
|
204
|
-
logText = "VERIFICATION: '".concat(verificationResult, "'. '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: true");
|
|
216
|
+
logText = "VERIFICATION: '".concat(verificationResult, "'. '").concat(control.controlDescription, "' hidden status is '").concat(value, "' Expected: 'true'");
|
|
205
217
|
(0, logs_core_1.logVerification)(logText);
|
|
206
218
|
test_1.expect.soft(value, logText).toBe(true);
|
|
207
219
|
return [2 /*return*/];
|
|
@@ -326,7 +338,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
326
338
|
case 2:
|
|
327
339
|
value = _a.sent();
|
|
328
340
|
verificationResult = value === expValue ? "✅ PASSED" : "❌ FAILED";
|
|
329
|
-
logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' enabled status is: '").concat(value, "' Expected: ").concat(expValue);
|
|
341
|
+
logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' enabled status is: '").concat(value, "' Expected: '").concat(expValue, "'");
|
|
330
342
|
(0, logs_core_1.logVerification)(logText);
|
|
331
343
|
test_1.expect.soft(value, logText).toBe(expValue);
|
|
332
344
|
return [2 /*return*/];
|
|
@@ -356,7 +368,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
356
368
|
_a.label = 2;
|
|
357
369
|
case 2: return [4 /*yield*/, control.controlLocator.first().isChecked().then(function (isChecked) {
|
|
358
370
|
var verificationResult = isChecked === expValue ? "✅ PASSED" : "❌ FAILED";
|
|
359
|
-
var logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' selected status is: '").concat(isChecked, "' Expected: ").concat(expValue);
|
|
371
|
+
var logText = "VERIFICATION: '".concat(verificationResult, "' '").concat(control.controlDescription, "' selected status is: '").concat(isChecked, "' Expected: '").concat(expValue, "'");
|
|
360
372
|
(0, logs_core_1.logVerification)(logText);
|
|
361
373
|
test_1.expect.soft(isChecked, logText).toBe(expValue);
|
|
362
374
|
})];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "playwright-ts-automationframework",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.64",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"ignore-case": "^0.1.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@playwright/test": "^1.
|
|
23
|
-
"@types/node": "^24.
|
|
22
|
+
"@playwright/test": "^1.55.0",
|
|
23
|
+
"@types/node": "^24.3.0",
|
|
24
24
|
"log4js": "^6.9.1",
|
|
25
25
|
"nodemailer": "^7.0.5",
|
|
26
|
-
"npm": "^11.5.
|
|
26
|
+
"npm": "^11.5.2",
|
|
27
27
|
"path": "^0.12.7",
|
|
28
|
-
"typescript": "^5.
|
|
28
|
+
"typescript": "^5.9.2"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"lib/**/**"
|