@uuv/cypress 2.19.0 → 2.20.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.20.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v2.19.0...runner-cypress-v2.20.0) (2024-05-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **runner-playwright:** update playwright monorepo to v1.44.1 ([f2a5cb2](https://github.com/Orange-OpenSource/uuv/commit/f2a5cb26c12af3030b09e2b2bd7de02d6b6504b4))
7
+
8
+
9
+ ### Features
10
+
11
+ * **deps:** update dependency clsx to v2 ([d455fb5](https://github.com/Orange-OpenSource/uuv/commit/d455fb504839be771357589434afeed8f64ce1d9))
12
+ * **runner-cypress:** adapt teamcity logs for cypress v13 ([d1290fd](https://github.com/Orange-OpenSource/uuv/commit/d1290fd1a4558e621fb1f13f0f8b36ce7fe9a8c3))
13
+ * **runner-cypress:** update dependency cypress to v13 ([d21c332](https://github.com/Orange-OpenSource/uuv/commit/d21c332b0de83b4adc77db72fc7e1865f7b6c997))
14
+
1
15
  # [2.19.0](https://github.com/Orange-OpenSource/uuv/compare/runner-cypress-v2.18.0...runner-cypress-v2.19.0) (2024-05-14)
2
16
 
3
17
 
@@ -88,29 +88,29 @@ async function setupNodeEvents(on, config) {
88
88
  on("before:spec", async (spec) => {
89
89
  if (!startedFile.includes(spec.absolute)) {
90
90
  await (0, cypress_cucumber_preprocessor_1.beforeSpecHandler)(config, spec);
91
- logTeamCity(`##teamcity[testSuiteStarted ${teamcityAddName(spec.baseName)} ${teamcityFlowId(spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
91
+ logTeamCity(`##teamcity[testSuiteStarted ${teamcityAddName(spec.name)} ${teamcityFlowId(spec.name)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
92
92
  startedFile.push(spec.absolute);
93
93
  }
94
94
  });
95
95
  on("after:spec", async (spec, results) => {
96
96
  await (0, cypress_cucumber_preprocessor_1.afterSpecHandler)(config, spec, results);
97
97
  results?.tests?.forEach(test => {
98
- logTeamCity(`##teamcity[testStarted ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
98
+ logTeamCity(`##teamcity[testStarted ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.name)} ${teamcityAddCustomField("locationHint", "test://" + spec.absolute)} ]`);
99
99
  if (test.state === "passed") {
100
100
  // eslint-disable-next-line max-len
101
- logTeamCity(`##teamcity[testFinished ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ${teamcityAddDuration(test)} ]`);
101
+ logTeamCity(`##teamcity[testFinished ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.name)} ${teamcityAddDuration(test)} ]`);
102
102
  }
103
103
  else if (test.state === "failed") {
104
104
  // eslint-disable-next-line max-len
105
- logTeamCity(`##teamcity[testFailed ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} type='comparisonFailure' message='Test failed' ]`);
105
+ logTeamCity(`##teamcity[testFailed ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.name)} type='comparisonFailure' message='Test failed' ]`);
106
106
  // eslint-disable-next-line max-len
107
- logTeamCity(`##teamcity[testFinished ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ${teamcityAddDuration(test)} ]`);
107
+ logTeamCity(`##teamcity[testFinished ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.name)} ${teamcityAddDuration(test)} ]`);
108
108
  }
109
109
  else {
110
- logTeamCity(`##teamcity[testIgnored ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.baseName)} ]`);
110
+ logTeamCity(`##teamcity[testIgnored ${teamcityAddName(test.title[1])} ${teamcityFlowIdAndParentFlowId(test.title[1], spec.name)} ]`);
111
111
  }
112
112
  });
113
- logTeamCity(`##teamcity[testSuiteFinished ${teamcityAddName(spec.baseName)} ${teamcityFlowId(spec.baseName)}]`);
113
+ logTeamCity(`##teamcity[testSuiteFinished ${teamcityAddName(spec.name)} ${teamcityFlowId(spec.name)}]`);
114
114
  });
115
115
  function logTeamCity(line) {
116
116
  // eslint-disable-next-line dot-notation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/cypress",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
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 cypress",
@@ -46,12 +46,12 @@
46
46
  "@badeball/cypress-cucumber-preprocessor": "20.0.5",
47
47
  "@cypress/webpack-preprocessor": "6.0.1",
48
48
  "@testing-library/cypress": "10.0.1",
49
- "@uuv/a11y": "1.0.0-beta.26",
50
- "@uuv/runner-commons": "2.14.0",
49
+ "@uuv/a11y": "1.0.0-beta.27",
50
+ "@uuv/runner-commons": "2.15.0",
51
51
  "axe-core": "4.9.1",
52
52
  "chai-subset": "^1.6.0",
53
53
  "cucumber-json-report-formatter": "0.1.4",
54
- "cypress": "12.17.4",
54
+ "cypress": "13.10.0",
55
55
  "cypress-axe": "1.5.0",
56
56
  "cypress-real-events": "^1.10.0",
57
57
  "is-admin": "4.0.0",
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "devDependencies": {
102
102
  "@types/minimist": "1.2.5",
103
- "@types/node": "20.12.11",
103
+ "@types/node": "20.12.12",
104
104
  "chalk": "^4.1.2",
105
105
  "cross-env": "7.0.3",
106
106
  "eslint-plugin-cypress": "2.15.2",