playwright-ts-automationframework 1.1.11 → 1.1.13

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.
@@ -324,13 +324,13 @@ export declare class Actions extends BasePage {
324
324
  /**
325
325
  * Wait for execution to stop for given time
326
326
  *
327
- * @param milliseconds Time for which executed should halt in seconds
327
+ * @param timeInSeconds Time for which executed should halt in seconds
328
328
  *
329
329
  * Example:
330
330
  *
331
331
  * sleep(10);
332
332
  */
333
- sleep(milliseconds?: number): Promise<unknown>;
333
+ sleep(timeInSeconds?: number): Promise<unknown>;
334
334
  /**
335
335
  * Close the browser instance
336
336
  *
@@ -819,18 +819,18 @@ var Actions = /** @class */ (function (_super) {
819
819
  /**
820
820
  * Wait for execution to stop for given time
821
821
  *
822
- * @param milliseconds Time for which executed should halt in seconds
822
+ * @param timeInSeconds Time for which executed should halt in seconds
823
823
  *
824
824
  * Example:
825
825
  *
826
826
  * sleep(10);
827
827
  */
828
828
  Actions.prototype.sleep = function () {
829
- return __awaiter(this, arguments, void 0, function (milliseconds) {
830
- if (milliseconds === void 0) { milliseconds = 5; }
829
+ return __awaiter(this, arguments, void 0, function (timeInSeconds) {
830
+ if (timeInSeconds === void 0) { timeInSeconds = 5; }
831
831
  return __generator(this, function (_a) {
832
832
  switch (_a.label) {
833
- case 0: return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, milliseconds * 1000); })];
833
+ case 0: return [4 /*yield*/, new Promise(function (resolve) { return setTimeout(resolve, timeInSeconds * 1000); })];
834
834
  case 1: return [2 /*return*/, _a.sent()];
835
835
  }
836
836
  });
@@ -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, testCaseID?: number): void;
15
+ static setTestCaseID(testInfo: TestInfo, testCaseID?: string): void;
16
16
  static executionCompleted(testinfo: TestInfo): void;
17
17
  }
@@ -71,8 +71,8 @@ var BasePage = /** @class */ (function () {
71
71
  });
72
72
  };
73
73
  BasePage.setTestCaseID = function (testInfo, testCaseID) {
74
- if (testCaseID === void 0) { testCaseID = 0; }
75
- testInfo.testId = testCaseID.toString();
74
+ if (testCaseID === void 0) { testCaseID = "0"; }
75
+ testInfo.testId = testCaseID;
76
76
  (0, logs_core_1.logTestResult)('');
77
77
  (0, logs_core_1.logTestResult)("===== START Of Execution For TestCase ID: " + testCaseID + " 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",