playwright-ts-automationframework 1.0.15 → 1.0.16

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Playwright Typescript Automation framework library
2
2
 
3
+ Sample Project: https://github.com/ketanp88/PlaywrightFrameworkDemoProject
4
+
3
5
  Playwright Typescript Automation framework
4
6
 
5
7
  This is a test automation framework around Playwright - for end-to-end testing. This is Playwright Automation framework has all wrapper actions methods and assertions method along with logger. This is plug and play Playwright Test Automation framework in Typescript.
@@ -72,7 +72,7 @@ var BasePage = /** @class */ (function () {
72
72
  };
73
73
  BasePage.setTestCaseID = function (testInfo, testCaseID) {
74
74
  if (testCaseID === void 0) { testCaseID = 0; }
75
- var testId = testCaseID.toString();
75
+ var testId = testInfo.testId;
76
76
  (0, logs_core_1.logTestResult)('');
77
77
  (0, logs_core_1.logTestResult)("===== START Of Execution For TestCase ID: " + testId + " Title: '" + testInfo.title + "' ======");
78
78
  (0, logs_core_1.logTestResult)('');
@@ -80,7 +80,7 @@ var BasePage = /** @class */ (function () {
80
80
  BasePage.executionCompleted = function (testinfo) {
81
81
  var _a;
82
82
  (0, logs_core_1.logTestResult)('');
83
- (0, logs_core_1.logTestResult)("===== END Of Execution For Test Case: '" + testinfo.title + "' With Test Result: '" + ((_a = testinfo.status) === null || _a === void 0 ? void 0 : _a.toUpperCase()) + "' =====");
83
+ (0, logs_core_1.logTestResult)("===== END Of Execution For Test Case: '" + testinfo.testId + "-" + testinfo.title + "' With Test Result: '" + ((_a = testinfo.status) === null || _a === void 0 ? void 0 : _a.toUpperCase()) + "' =====");
84
84
  (0, logs_core_1.logTestResult)('');
85
85
  };
86
86
  return BasePage;
@@ -52,21 +52,7 @@ var Configuration = /** @class */ (function () {
52
52
  });
53
53
  Object.defineProperty(Configuration, "configurationData", {
54
54
  get: function () {
55
- if (Configuration.environment.toUpperCase().includes("QA")) {
56
- return appConfigurations.QA;
57
- }
58
- if (Configuration.environment.toUpperCase().includes("DEV")) {
59
- return appConfigurations.DEV;
60
- }
61
- else if (Configuration.environment.toUpperCase().includes("STAGE")) {
62
- return appConfigurations.STAGE;
63
- }
64
- else if (Configuration.environment.toUpperCase().includes("PROD")) {
65
- return appConfigurations.PROD;
66
- }
67
- else {
68
- return appConfigurations[Configuration.environment];
69
- }
55
+ return appConfigurations[Configuration.environment];
70
56
  },
71
57
  enumerable: false,
72
58
  configurable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",