playwright-ts-automationframework 1.1.31 → 1.1.34

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.
@@ -214,14 +214,19 @@ var Assertion = /** @class */ (function (_super) {
214
214
  */
215
215
  Assertion.prototype.verifyAttributeValue = function (control, attributeName, expectedAttributeValue) {
216
216
  return __awaiter(this, void 0, void 0, function () {
217
+ var _this = this;
217
218
  return __generator(this, function (_a) {
218
219
  switch (_a.label) {
219
- case 0: return [4 /*yield*/, this.getAttributeValue(control, attributeName).then(function (value) {
220
- var verificationResult = value === expectedAttributeValue ? "PASSED" : "FAILED";
221
- var logText = "VERIFICATION: ".concat(verificationResult, ". Attribute value of ").concat(control.controlDescription, " Expected: '").concat(expectedAttributeValue, "' Actual : '").concat(value, "'");
222
- (0, logs_core_1.logVerification)(logText);
223
- (0, test_1.expect)(control.controlLocator.first(), logText).toHaveAttribute(expectedAttributeValue);
224
- })];
220
+ case 0: return [4 /*yield*/, this.getAttributeValue(control, attributeName).then(function (value) { return __awaiter(_this, void 0, void 0, function () {
221
+ var verificationResult, logText;
222
+ return __generator(this, function (_a) {
223
+ verificationResult = value === expectedAttributeValue ? "PASSED" : "FAILED";
224
+ logText = "VERIFICATION: ".concat(verificationResult, ". Attribute value of ").concat(control.controlDescription, " Expected: '").concat(expectedAttributeValue, "' Actual : '").concat(value, "'");
225
+ (0, logs_core_1.logVerification)(logText);
226
+ (0, test_1.expect)(value, logText).toBe(expectedAttributeValue);
227
+ return [2 /*return*/];
228
+ });
229
+ }); })];
225
230
  case 1:
226
231
  _a.sent();
227
232
  return [2 /*return*/];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.31",
3
+ "version": "1.1.34",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",