@uuv/playwright 3.39.0 → 3.40.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/dist/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.js +12 -2
- package/dist/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.js +12 -2
- package/package.json +2 -2
- package/src/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.ts +16 -2
- package/src/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.ts +16 -2
|
@@ -457,7 +457,7 @@ function getConfigDir() {
|
|
|
457
457
|
});
|
|
458
458
|
});
|
|
459
459
|
/**
|
|
460
|
-
* Checks that there is a
|
|
460
|
+
* 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```
|
|
461
461
|
* */
|
|
462
462
|
(0, world_1.Then)(`I should see a grid named {string} and containing`, async function (expectedListName, pExpectedElementsOfList) {
|
|
463
463
|
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
@@ -467,7 +467,17 @@ function getConfigDir() {
|
|
|
467
467
|
});
|
|
468
468
|
});
|
|
469
469
|
/**
|
|
470
|
-
* Checks that there is a
|
|
470
|
+
* 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```
|
|
471
|
+
* */
|
|
472
|
+
(0, world_1.Then)(`I should see a treegrid named {string} and containing`, async function (expectedListName, pExpectedElementsOfList) {
|
|
473
|
+
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
474
|
+
await (0, core_engine_1.findWithRoleAndName)(this, "treegrid", expectedListName);
|
|
475
|
+
await (0, core_engine_1.getPageOrElement)(this).then(async (element) => {
|
|
476
|
+
await expectTableToHaveContent(element, expectedElementsOfList, "gridcell");
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
/**
|
|
480
|
+
* 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```
|
|
471
481
|
* */
|
|
472
482
|
(0, world_1.Then)(`I should see a table named {string} and containing`, async function (expectedListName, pExpectedElementsOfList) {
|
|
473
483
|
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
@@ -457,7 +457,7 @@ function getConfigDir() {
|
|
|
457
457
|
});
|
|
458
458
|
});
|
|
459
459
|
/**
|
|
460
|
-
* Vérifie qu'il existe une
|
|
460
|
+
* 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```
|
|
461
461
|
* */
|
|
462
462
|
(0, world_1.Then)(`je dois voir une grille nommée {string} et contenant`, async function (expectedListName, pExpectedElementsOfList) {
|
|
463
463
|
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
@@ -467,7 +467,17 @@ function getConfigDir() {
|
|
|
467
467
|
});
|
|
468
468
|
});
|
|
469
469
|
/**
|
|
470
|
-
* Vérifie qu'il existe une
|
|
470
|
+
* 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```
|
|
471
|
+
* */
|
|
472
|
+
(0, world_1.Then)(`je dois voir une grille arborescente nommée {string} et contenant`, async function (expectedListName, pExpectedElementsOfList) {
|
|
473
|
+
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
474
|
+
await (0, core_engine_1.findWithRoleAndName)(this, "treegrid", expectedListName);
|
|
475
|
+
await (0, core_engine_1.getPageOrElement)(this).then(async (element) => {
|
|
476
|
+
await expectTableToHaveContent(element, expectedElementsOfList, "gridcell");
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
/**
|
|
480
|
+
* 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```
|
|
471
481
|
* */
|
|
472
482
|
(0, world_1.Then)(`je dois voir un tableau nommé {string} et contenant`, async function (expectedListName, pExpectedElementsOfList) {
|
|
473
483
|
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/playwright",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.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 playwright",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@cucumber/tag-expressions": "6.2.0",
|
|
48
48
|
"@playwright/test": "1.52.0",
|
|
49
49
|
"@uuv/a11y": "1.0.0-beta.71",
|
|
50
|
-
"@uuv/runner-commons": "2.
|
|
50
|
+
"@uuv/runner-commons": "2.53.0",
|
|
51
51
|
"axe-core": "4.10.3",
|
|
52
52
|
"axe-playwright": "2.1.0",
|
|
53
53
|
"chalk-table": "1.0.2",
|
|
@@ -587,7 +587,7 @@ Then(
|
|
|
587
587
|
);
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
|
-
* Checks that there is a
|
|
590
|
+
* 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```
|
|
591
591
|
* */
|
|
592
592
|
Then(
|
|
593
593
|
`I should see a grid named {string} and containing`,
|
|
@@ -601,7 +601,21 @@ Then(
|
|
|
601
601
|
);
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
|
-
* Checks that there is a
|
|
604
|
+
* 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```
|
|
605
|
+
* */
|
|
606
|
+
Then(
|
|
607
|
+
`I should see a treegrid named {string} and containing`,
|
|
608
|
+
async function(expectedListName: string, pExpectedElementsOfList: DataTable) {
|
|
609
|
+
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
610
|
+
await findWithRoleAndName(this, "treegrid", expectedListName);
|
|
611
|
+
await getPageOrElement(this).then(async (element) => {
|
|
612
|
+
await expectTableToHaveContent(element, expectedElementsOfList, "gridcell");
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* 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```
|
|
605
619
|
* */
|
|
606
620
|
Then(
|
|
607
621
|
`I should see a table named {string} and containing`,
|
|
@@ -587,7 +587,7 @@ Then(
|
|
|
587
587
|
);
|
|
588
588
|
|
|
589
589
|
/**
|
|
590
|
-
* Vérifie qu'il existe une
|
|
590
|
+
* 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```
|
|
591
591
|
* */
|
|
592
592
|
Then(
|
|
593
593
|
`je dois voir une grille nommée {string} et contenant`,
|
|
@@ -601,7 +601,21 @@ Then(
|
|
|
601
601
|
);
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
|
-
* Vérifie qu'il existe une
|
|
604
|
+
* 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```
|
|
605
|
+
* */
|
|
606
|
+
Then(
|
|
607
|
+
`je dois voir une grille arborescente nommée {string} et contenant`,
|
|
608
|
+
async function(expectedListName: string, pExpectedElementsOfList: DataTable) {
|
|
609
|
+
const expectedElementsOfList = removeHeaderSeparatorLine(pExpectedElementsOfList);
|
|
610
|
+
await findWithRoleAndName(this, "treegrid", expectedListName);
|
|
611
|
+
await getPageOrElement(this).then(async (element) => {
|
|
612
|
+
await expectTableToHaveContent(element, expectedElementsOfList, "gridcell");
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
);
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* 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```
|
|
605
619
|
* */
|
|
606
620
|
Then(
|
|
607
621
|
`je dois voir un tableau nommé {string} et contenant`,
|