playwright-ts-automationframework 1.1.17 → 1.1.18
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.
package/lib/core/actions.core.js
CHANGED
|
@@ -74,11 +74,12 @@ var Actions = /** @class */ (function (_super) {
|
|
|
74
74
|
*
|
|
75
75
|
* click(loginBtn);
|
|
76
76
|
*/
|
|
77
|
-
Actions.prototype.click = function (
|
|
78
|
-
return __awaiter(this,
|
|
77
|
+
Actions.prototype.click = function (control_1) {
|
|
78
|
+
return __awaiter(this, arguments, void 0, function (control, isforceful) {
|
|
79
|
+
if (isforceful === void 0) { isforceful = false; }
|
|
79
80
|
return __generator(this, function (_a) {
|
|
80
81
|
switch (_a.label) {
|
|
81
|
-
case 0: return [4 /*yield*/, control.controlLocator.first().click().then(function () {
|
|
82
|
+
case 0: return [4 /*yield*/, control.controlLocator.first().click({ force: isforceful }).then(function () {
|
|
82
83
|
(0, logs_core_1.logAction)("Clicked on '" + control.controlDescription + "'");
|
|
83
84
|
}, function (error) {
|
|
84
85
|
(0, logs_core_1.errorLog)("Unable to click on '" + control.controlDescription + "'");
|
|
@@ -98,7 +98,7 @@ var Assertion = /** @class */ (function (_super) {
|
|
|
98
98
|
Assertion.prototype.verifyIsContains = function (actual, expected) {
|
|
99
99
|
try {
|
|
100
100
|
var verificationResult = actual.trim().includes(expected.trim()) ? "PASSED" : "Failed";
|
|
101
|
-
(0, logs_core_1.logVerification)("VERIFICATION: ".concat(verificationResult, ". Actual: '").concat(actual, "'
|
|
101
|
+
(0, logs_core_1.logVerification)("VERIFICATION: ".concat(verificationResult, ". Actual: '").concat(actual, "' contains Expected: '").concat(expected.trim(), "'"));
|
|
102
102
|
(0, test_1.expect)(actual.trim()).toContain(expected.trim());
|
|
103
103
|
}
|
|
104
104
|
catch (error1) {
|
|
@@ -12,6 +12,6 @@ export declare class BasePage {
|
|
|
12
12
|
* and URL provided in AppConfigurations.json
|
|
13
13
|
*/
|
|
14
14
|
initializeBrowser(url?: string): Promise<void>;
|
|
15
|
-
static setTestCaseID(testInfo: TestInfo
|
|
16
|
-
static executionCompleted(
|
|
15
|
+
static setTestCaseID(testInfo: TestInfo): void;
|
|
16
|
+
static executionCompleted(testInfo: TestInfo): void;
|
|
17
17
|
}
|
|
@@ -70,17 +70,15 @@ var BasePage = /** @class */ (function () {
|
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
BasePage.setTestCaseID = function (testInfo
|
|
74
|
-
if (testCaseID === void 0) { testCaseID = 0; }
|
|
75
|
-
var testId = testInfo.testId;
|
|
73
|
+
BasePage.setTestCaseID = function (testInfo) {
|
|
76
74
|
(0, logs_core_1.logTestResult)('');
|
|
77
|
-
(0, logs_core_1.logTestResult)("===== START Of Execution For
|
|
75
|
+
(0, logs_core_1.logTestResult)("===== START Of Execution For Title: '".concat(testInfo.title, "' ======"));
|
|
78
76
|
(0, logs_core_1.logTestResult)('');
|
|
79
77
|
};
|
|
80
|
-
BasePage.executionCompleted = function (
|
|
78
|
+
BasePage.executionCompleted = function (testInfo) {
|
|
81
79
|
var _a;
|
|
82
80
|
(0, logs_core_1.logTestResult)('');
|
|
83
|
-
(0, logs_core_1.logTestResult)("===== END Of Execution For Test Case:
|
|
81
|
+
(0, logs_core_1.logTestResult)("===== END Of Execution For Test Case: ".concat(testInfo.title, " ' ").concat(testInfo.title, " ' With Test Result: ' ").concat((_a = testInfo.status) === null || _a === void 0 ? void 0 : _a.toUpperCase(), "' ====="));
|
|
84
82
|
(0, logs_core_1.logTestResult)('');
|
|
85
83
|
};
|
|
86
84
|
return BasePage;
|