playwright-ts-automationframework 1.1.59 → 1.1.61

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
- * verifyIsEnabled(loginBtn, true);
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
- * verifyIsEnabled(loginBtn, true);
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
- _a.label = 2;
327
- case 2: return [4 /*yield*/, control.controlLocator.first().isEnabled().then(function (value) {
328
- var verificationResult = value === expValue ? "✅ PASSED" : "❌ FAILED";
329
- var 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);
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
  });
@@ -59,9 +59,9 @@ var BasePage = /** @class */ (function () {
59
59
  switch (_a.label) {
60
60
  case 0: return [4 /*yield*/, this.page.goto(url, {
61
61
  waitUntil: "load",
62
- timeout: 30000
62
+ timeout: 60000
63
63
  }).then(function () {
64
- (0, logs_core_1.logAction)("Navigated to URL: " + url);
64
+ (0, logs_core_1.logAction)("Navigated to URL: '" + url + "'");
65
65
  })];
66
66
  case 1:
67
67
  _a.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
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.0",
23
- "@types/node": "^24.0.0",
22
+ "@playwright/test": "^1.53.2",
23
+ "@types/node": "^24.0.10",
24
24
  "log4js": "^6.9.1",
25
- "nodemailer": "^7.0.3",
26
- "npm": "^11.4.1",
25
+ "nodemailer": "^7.0.5",
26
+ "npm": "^11.4.2",
27
27
  "path": "^0.12.7",
28
28
  "typescript": "^5.8.3"
29
29
  },