@uuv/playwright 2.12.0 → 2.13.1

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.
@@ -16,7 +16,7 @@ exports.test = test_1.test.extend({
16
16
  request,
17
17
  testInfo,
18
18
  parameters: runConfiguration.runtime.worldParameters || {},
19
- log: () => { },
19
+ log: () => { }, // eslint-disable-line @typescript-eslint/no-empty-function
20
20
  attach: async () => { }, // eslint-disable-line @typescript-eslint/no-empty-function
21
21
  });
22
22
  await world.init();
@@ -19,11 +19,11 @@ var COOKIE_NAME;
19
19
  (function (COOKIE_NAME) {
20
20
  COOKIE_NAME["SELECTED_ELEMENT"] = "withinFocusedElement";
21
21
  COOKIE_NAME["MOCK_URL"] = "mockUrl";
22
- })(COOKIE_NAME = exports.COOKIE_NAME || (exports.COOKIE_NAME = {}));
22
+ })(COOKIE_NAME || (exports.COOKIE_NAME = COOKIE_NAME = {}));
23
23
  var COOKIE_VALUE;
24
24
  (function (COOKIE_VALUE) {
25
25
  COOKIE_VALUE["NOT_EXIST"] = "notExist";
26
- })(COOKIE_VALUE = exports.COOKIE_VALUE || (exports.COOKIE_VALUE = {}));
26
+ })(COOKIE_VALUE || (exports.COOKIE_VALUE = COOKIE_VALUE = {}));
27
27
  var FILTER_TYPE;
28
28
  (function (FILTER_TYPE) {
29
29
  FILTER_TYPE["SELECTOR"] = "bySelector";
@@ -32,7 +32,7 @@ var FILTER_TYPE;
32
32
  FILTER_TYPE["ARIA_LABEL"] = "byAriaLabel";
33
33
  FILTER_TYPE["TEST_ID"] = "byTestId";
34
34
  FILTER_TYPE["SELECTOR_PARENT"] = "bySelectorParent";
35
- })(FILTER_TYPE = exports.FILTER_TYPE || (exports.FILTER_TYPE = {}));
35
+ })(FILTER_TYPE || (exports.FILTER_TYPE = FILTER_TYPE = {}));
36
36
  async function getPageOrElement(world) {
37
37
  let pointer = world.page;
38
38
  await getCookie(world, COOKIE_NAME.SELECTED_ELEMENT).then(async (cookie) => {
@@ -99,7 +99,7 @@ class UUVCliPlaywrightRunner {
99
99
  runPlaywright(options) {
100
100
  const configFile = `${this.projectDir}/playwright.config.ts`;
101
101
  try {
102
- let reporter = "--reporter=@uuv/playwright/uuv-playwright-reporter";
102
+ let reporter = options.command === "e2e" ? "--reporter=@uuv/playwright/uuv-playwright-reporter" : "";
103
103
  if (options.report?.junit.enabled) {
104
104
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
105
105
  // @ts-ignore
@@ -21,7 +21,7 @@ var GeneratedReportType;
21
21
  (function (GeneratedReportType) {
22
22
  GeneratedReportType["CONSOLE"] = "console";
23
23
  GeneratedReportType["HTML"] = "html";
24
- })(GeneratedReportType = exports.GeneratedReportType || (exports.GeneratedReportType = {}));
24
+ })(GeneratedReportType || (exports.GeneratedReportType = GeneratedReportType = {}));
25
25
  class ReportOfFeature {
26
26
  passed = 0;
27
27
  skipped = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/playwright",
3
- "version": "2.12.0",
3
+ "version": "2.13.1",
4
4
  "type": "commonjs",
5
5
  "author": "Louis Fredice NJAKO MOLOM (https://github.com/luifr10) & Stanley SERVICAL (https://github.com/stanlee974)",
6
6
  "description": "A solution to facilitate the writing and execution of E2E tests understandable by any human being using cucumber(BDD) and playwright",
@@ -45,7 +45,7 @@
45
45
  "@cucumber/cucumber": "9.6.0",
46
46
  "@cucumber/tag-expressions": "^6.0.0",
47
47
  "@playwright/test": "1.43.1",
48
- "@uuv/runner-commons": "2.11.0",
48
+ "@uuv/runner-commons": "2.12.0",
49
49
  "axe-core": "4.9.0",
50
50
  "axe-playwright": "2.0.1",
51
51
  "chalk-table": "^1.0.2",
@@ -55,7 +55,7 @@
55
55
  "multiple-cucumber-html-reporter": "3.6.2",
56
56
  "nanoid": "^3.3.7",
57
57
  "ts-node": "10.9.2",
58
- "typescript": "4.9.5"
58
+ "typescript": "5.4.5"
59
59
  },
60
60
  "types": "./dist/index.d.ts",
61
61
  "main": "./dist/index.js",
@@ -92,7 +92,7 @@
92
92
  "cross-env": "7.0.3",
93
93
  "eslint-plugin-cucumber": "2.0.0",
94
94
  "eslint-plugin-jest": "27.9.0",
95
- "eslint-plugin-playwright": "0.22.2",
95
+ "eslint-plugin-playwright": "1.6.0",
96
96
  "ts-loader": "9.4.2",
97
97
  "tsconfig-paths": "4.2.0",
98
98
  "webpack": "5.90.3"