@uuv/cypress 2.59.0 → 2.60.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,10 @@
1
+ # [2.60.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.59.0...runner-cypress-v2.60.0) (2025-07-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * add sentence to check page title ([9f720c2](https://github.com/e2e-test-quest/uuv/commit/9f720c2e926b99a9f8beea093f0b9fc44dd1909c))
7
+
1
8
  # [2.59.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.58.0...runner-cypress-v2.59.0) (2025-07-02)
2
9
 
3
10
 
@@ -238,6 +238,12 @@ const __common_1 = require("./../_.common");
238
238
  ////////////////////////////////////////////
239
239
  // VALIDATION
240
240
  ////////////////////////////////////////////
241
+ /**
242
+ * Checks the current html page have the specified title
243
+ * */
244
+ (0, cypress_cucumber_preprocessor_1.Then)(`I should see the page title {string}`, function (pageTitle) {
245
+ cy.title().should("eq", pageTitle);
246
+ });
241
247
  /**
242
248
  * Checks that an Html element exists with the specified content
243
249
  * */
@@ -238,6 +238,12 @@ const __common_1 = require("./../_.common");
238
238
  ////////////////////////////////////////////
239
239
  // VALIDATION
240
240
  ////////////////////////////////////////////
241
+ /**
242
+ * Vérifie que la page courante a le bon titre
243
+ * */
244
+ (0, cypress_cucumber_preprocessor_1.Then)(`je dois voir le titre de page {string}`, function (pageTitle) {
245
+ cy.title().should("eq", pageTitle);
246
+ });
241
247
  /**
242
248
  * Vérifie qu'un élément Html existe avec le contenu spécifié
243
249
  * */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uuv/cypress",
3
- "version": "2.59.0",
3
+ "version": "2.60.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",
@@ -48,7 +48,7 @@
48
48
  "@cypress/webpack-preprocessor": "6.0.4",
49
49
  "@testing-library/cypress": "10.0.3",
50
50
  "@uuv/a11y": "1.0.0-beta.71",
51
- "@uuv/runner-commons": "2.53.0",
51
+ "@uuv/runner-commons": "2.54.0",
52
52
  "axe-core": "4.10.3",
53
53
  "chai-subset": "^1.6.0",
54
54
  "cypress": "14.4.0",
@@ -294,6 +294,13 @@ When(`I set header(s) for uri {string}`, function(url: string, headersToSet: Dat
294
294
  // VALIDATION
295
295
  ////////////////////////////////////////////
296
296
 
297
+ /**
298
+ * Checks the current html page have the specified title
299
+ * */
300
+ Then(`I should see the page title {string}`, function(pageTitle: string) {
301
+ cy.title().should("eq", pageTitle);
302
+ });
303
+
297
304
  /**
298
305
  * Checks that an Html element exists with the specified content
299
306
  * */
@@ -294,6 +294,13 @@ When(`je saisie le(s) header(s) pour l'Uri {string}`, function(url: string, head
294
294
  // VALIDATION
295
295
  ////////////////////////////////////////////
296
296
 
297
+ /**
298
+ * Vérifie que la page courante a le bon titre
299
+ * */
300
+ Then(`je dois voir le titre de page {string}`, function(pageTitle: string) {
301
+ cy.title().should("eq", pageTitle);
302
+ });
303
+
297
304
  /**
298
305
  * Vérifie qu'un élément Html existe avec le contenu spécifié
299
306
  * */