@uuv/cypress 2.58.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 +19 -0
- package/dist/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.js +20 -2
- package/dist/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.js +20 -2
- package/package.json +2 -2
- package/src/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.ts +26 -2
- package/src/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.ts +26 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
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
|
+
|
|
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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update doc for grid and table sentences, [#1029](https://github.com/e2e-test-quest/uuv/issues/1029) ([751e12a](https://github.com/e2e-test-quest/uuv/commit/751e12ab912fa6890717526a4b5e15be7aeafb91))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add treegrid sentence, [#1029](https://github.com/e2e-test-quest/uuv/issues/1029) ([847462e](https://github.com/e2e-test-quest/uuv/commit/847462e75fd733ee332f197a1b72b331c0fe5b98))
|
|
19
|
+
|
|
1
20
|
# [2.58.0](https://github.com/e2e-test-quest/uuv/compare/runner-cypress-v2.57.0...runner-cypress-v2.58.0) (2025-07-01)
|
|
2
21
|
|
|
3
22
|
|
package/dist/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.js
CHANGED
|
@@ -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
|
* */
|
|
@@ -386,7 +392,7 @@ const __common_1 = require("./../_.common");
|
|
|
386
392
|
});
|
|
387
393
|
});
|
|
388
394
|
/**
|
|
389
|
-
* Checks that there is a
|
|
395
|
+
* Checks that there is a grid with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\n```gherkin\nWhen I visit path "https://e2e-test-quest.github.io/simple-webapp/grid.html"\nThen I should see a grid named "HTML Grid Example" and containing\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
390
396
|
* */
|
|
391
397
|
(0, cypress_cucumber_preprocessor_1.Then)(`I should see a grid named {string} and containing`, function (expectedListName, pExpectedElementsOfList) {
|
|
392
398
|
const expectedElementsOfList = (0, __common_1.removeHeaderSeparatorLine)(pExpectedElementsOfList);
|
|
@@ -398,7 +404,19 @@ const __common_1 = require("./../_.common");
|
|
|
398
404
|
});
|
|
399
405
|
});
|
|
400
406
|
/**
|
|
401
|
-
* Checks that there is a
|
|
407
|
+
* Checks that there is a treegrid with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\n```gherkin\nWhen I visit path "https://e2e-test-quest.github.io/simple-webapp/treegrid.html"\nThen I should see a treegrid named "HTML Treegrid Example" and containing\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
408
|
+
* */
|
|
409
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`I should see a treegrid named {string} and containing`, function (expectedListName, pExpectedElementsOfList) {
|
|
410
|
+
const expectedElementsOfList = (0, __common_1.removeHeaderSeparatorLine)(pExpectedElementsOfList);
|
|
411
|
+
cy.uuvFindByRole("treegrid", { name: expectedListName })
|
|
412
|
+
.uuvFoundedElement()
|
|
413
|
+
.should("exist")
|
|
414
|
+
.within(() => {
|
|
415
|
+
(0, __common_1.expectTableToHaveContent)(expectedElementsOfList, "gridcell");
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
/**
|
|
419
|
+
* Checks that there is a table with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\n```gherkin\nWhen I visit path "https://e2e-test-quest.github.io/simple-webapp/table.html"\nThen I should see a table named "test-list" and containing\n| Company | Contact | Country |\n| ----------------------------- | ---------------- | ------- |\n| Alfreds Futterkiste | Maria Anders | Germany |\n| Centro comercial Moctezuma | Francisco Chang | Mexico |\n| Ernst Handel | Roland Mendel | Austria |\n| Island Trading | Helen Bennett | UK |\n| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |\n| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |\n```
|
|
402
420
|
* */
|
|
403
421
|
(0, cypress_cucumber_preprocessor_1.Then)(`I should see a table named {string} and containing`, function (expectedListName, pExpectedElementsOfList) {
|
|
404
422
|
const expectedElementsOfList = (0, __common_1.removeHeaderSeparatorLine)(pExpectedElementsOfList);
|
package/dist/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.js
CHANGED
|
@@ -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
|
* */
|
|
@@ -386,7 +392,7 @@ const __common_1 = require("./../_.common");
|
|
|
386
392
|
});
|
|
387
393
|
});
|
|
388
394
|
/**
|
|
389
|
-
* Vérifie qu'il existe une
|
|
395
|
+
* Vérifie qu'il existe une grille (grid) avec le nom et les éléments spécifiés.<br/> <u>Exemple</u>\n```gherkin\nQuand je visite l'Url "https://e2e-test-quest.github.io/simple-webapp/grid.html"\nAlors je dois voir une liste nommée "HTML Grid Example" et contenant\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
390
396
|
* */
|
|
391
397
|
(0, cypress_cucumber_preprocessor_1.Then)(`je dois voir une grille nommée {string} et contenant`, function (expectedListName, pExpectedElementsOfList) {
|
|
392
398
|
const expectedElementsOfList = (0, __common_1.removeHeaderSeparatorLine)(pExpectedElementsOfList);
|
|
@@ -398,7 +404,19 @@ const __common_1 = require("./../_.common");
|
|
|
398
404
|
});
|
|
399
405
|
});
|
|
400
406
|
/**
|
|
401
|
-
* Vérifie qu'il existe une
|
|
407
|
+
* Vérifie qu'il existe une grille arborescente (treegrid) avec le nom et les éléments spécifiés.<br/> <u>Exemple</u>\n```gherkin\nQuand je visite l'Url "https://e2e-test-quest.github.io/simple-webapp/treegrid.html"\nAlors je dois voir une liste nommée "HTML Treegrid Example" et contenant\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
408
|
+
* */
|
|
409
|
+
(0, cypress_cucumber_preprocessor_1.Then)(`je dois voir une grille arborescente nommée {string} et contenant`, function (expectedListName, pExpectedElementsOfList) {
|
|
410
|
+
const expectedElementsOfList = (0, __common_1.removeHeaderSeparatorLine)(pExpectedElementsOfList);
|
|
411
|
+
cy.uuvFindByRole("treegrid", { name: expectedListName })
|
|
412
|
+
.uuvFoundedElement()
|
|
413
|
+
.should("exist")
|
|
414
|
+
.within(() => {
|
|
415
|
+
(0, __common_1.expectTableToHaveContent)(expectedElementsOfList, "gridcell");
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
/**
|
|
419
|
+
* Vérifie qu'il existe un tableau (table) avec le nom et les éléments spécifiés.<br/> <u>Exemple</u>\n```gherkin\nQuand je visite l'Url "https://e2e-test-quest.github.io/simple-webapp/table.html"\nAlors je dois voir un tableau nommée "HTML Table Example" et contenant\n| Company | Contact | Country |\n| ----------------------------- | ---------------- | ------- |\n| Alfreds Futterkiste | Maria Anders | Germany |\n| Centro comercial Moctezuma | Francisco Chang | Mexico |\n| Ernst Handel | Roland Mendel | Austria |\n| Island Trading | Helen Bennett | UK |\n| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |\n| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |\n```
|
|
402
420
|
* */
|
|
403
421
|
(0, cypress_cucumber_preprocessor_1.Then)(`je dois voir un tableau nommé {string} et contenant`, function (expectedListName, pExpectedElementsOfList) {
|
|
404
422
|
const expectedElementsOfList = (0, __common_1.removeHeaderSeparatorLine)(pExpectedElementsOfList);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/cypress",
|
|
3
|
-
"version": "2.
|
|
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.
|
|
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",
|
package/src/cucumber/step_definitions/cypress/generated/_en-generated-cucumber-steps-definition.ts
CHANGED
|
@@ -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
|
* */
|
|
@@ -489,7 +496,7 @@ Then(
|
|
|
489
496
|
);
|
|
490
497
|
|
|
491
498
|
/**
|
|
492
|
-
* Checks that there is a
|
|
499
|
+
* Checks that there is a grid with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\n```gherkin\nWhen I visit path "https://e2e-test-quest.github.io/simple-webapp/grid.html"\nThen I should see a grid named "HTML Grid Example" and containing\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
493
500
|
* */
|
|
494
501
|
Then(
|
|
495
502
|
`I should see a grid named {string} and containing`,
|
|
@@ -505,7 +512,24 @@ Then(
|
|
|
505
512
|
);
|
|
506
513
|
|
|
507
514
|
/**
|
|
508
|
-
* Checks that there is a
|
|
515
|
+
* Checks that there is a treegrid with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\n```gherkin\nWhen I visit path "https://e2e-test-quest.github.io/simple-webapp/treegrid.html"\nThen I should see a treegrid named "HTML Treegrid Example" and containing\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
516
|
+
* */
|
|
517
|
+
Then(
|
|
518
|
+
`I should see a treegrid named {string} and containing`,
|
|
519
|
+
function(expectedListName: string, pExpectedElementsOfList: DataTable) {
|
|
520
|
+
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
521
|
+
cy.uuvFindByRole("treegrid", { name: expectedListName })
|
|
522
|
+
.uuvFoundedElement()
|
|
523
|
+
.should("exist")
|
|
524
|
+
.within(() => {
|
|
525
|
+
expectTableToHaveContent(expectedElementsOfList, "gridcell");
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
);
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Checks that there is a table with the specified [name](https://russmaxdesign.github.io/html-elements-names/) containing list items.<br/> <u>Example</u>\n```gherkin\nWhen I visit path "https://e2e-test-quest.github.io/simple-webapp/table.html"\nThen I should see a table named "test-list" and containing\n| Company | Contact | Country |\n| ----------------------------- | ---------------- | ------- |\n| Alfreds Futterkiste | Maria Anders | Germany |\n| Centro comercial Moctezuma | Francisco Chang | Mexico |\n| Ernst Handel | Roland Mendel | Austria |\n| Island Trading | Helen Bennett | UK |\n| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |\n| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |\n```
|
|
509
533
|
* */
|
|
510
534
|
Then(
|
|
511
535
|
`I should see a table named {string} and containing`,
|
package/src/cucumber/step_definitions/cypress/generated/_fr-generated-cucumber-steps-definition.ts
CHANGED
|
@@ -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
|
* */
|
|
@@ -489,7 +496,7 @@ Then(
|
|
|
489
496
|
);
|
|
490
497
|
|
|
491
498
|
/**
|
|
492
|
-
* Vérifie qu'il existe une
|
|
499
|
+
* Vérifie qu'il existe une grille (grid) avec le nom et les éléments spécifiés.<br/> <u>Exemple</u>\n```gherkin\nQuand je visite l'Url "https://e2e-test-quest.github.io/simple-webapp/grid.html"\nAlors je dois voir une liste nommée "HTML Grid Example" et contenant\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
493
500
|
* */
|
|
494
501
|
Then(
|
|
495
502
|
`je dois voir une grille nommée {string} et contenant`,
|
|
@@ -505,7 +512,24 @@ Then(
|
|
|
505
512
|
);
|
|
506
513
|
|
|
507
514
|
/**
|
|
508
|
-
* Vérifie qu'il existe une
|
|
515
|
+
* Vérifie qu'il existe une grille arborescente (treegrid) avec le nom et les éléments spécifiés.<br/> <u>Exemple</u>\n```gherkin\nQuand je visite l'Url "https://e2e-test-quest.github.io/simple-webapp/treegrid.html"\nAlors je dois voir une liste nommée "HTML Treegrid Example" et contenant\n| Make | Model | Price |\n| ------------ | ------- | ------ |\n| Toyota | Celica | 35000 |\n| Ford | Mondeo | 32000 |\n| Porsche | Boxster | 72000 |\n| BMW | M50 | 60000 |\n| Aston Martin | DBX | 190000 |\n```
|
|
516
|
+
* */
|
|
517
|
+
Then(
|
|
518
|
+
`je dois voir une grille arborescente nommée {string} et contenant`,
|
|
519
|
+
function(expectedListName: string, pExpectedElementsOfList: DataTable) {
|
|
520
|
+
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
521
|
+
cy.uuvFindByRole("treegrid", { name: expectedListName })
|
|
522
|
+
.uuvFoundedElement()
|
|
523
|
+
.should("exist")
|
|
524
|
+
.within(() => {
|
|
525
|
+
expectTableToHaveContent(expectedElementsOfList, "gridcell");
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
);
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Vérifie qu'il existe un tableau (table) avec le nom et les éléments spécifiés.<br/> <u>Exemple</u>\n```gherkin\nQuand je visite l'Url "https://e2e-test-quest.github.io/simple-webapp/table.html"\nAlors je dois voir un tableau nommée "HTML Table Example" et contenant\n| Company | Contact | Country |\n| ----------------------------- | ---------------- | ------- |\n| Alfreds Futterkiste | Maria Anders | Germany |\n| Centro comercial Moctezuma | Francisco Chang | Mexico |\n| Ernst Handel | Roland Mendel | Austria |\n| Island Trading | Helen Bennett | UK |\n| Laughing Bacchus Winecellars | Yoshi Tannamuri | Canada |\n| Magazzini Alimentari Riuniti | Giovanni Rovelli | Italy |\n```
|
|
509
533
|
* */
|
|
510
534
|
Then(
|
|
511
535
|
`je dois voir un tableau nommé {string} et contenant`,
|