@uuv/playwright 3.40.1 → 3.41.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 +6 -0
- package/dist/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.js +6 -0
- package/package.json +2 -2
- package/src/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.ts +7 -0
- package/src/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.ts +7 -0
|
@@ -219,6 +219,12 @@ const path_1 = __importDefault(require("path"));
|
|
|
219
219
|
await route.continue({ headers: { ...headers, ...headersToSet.rowsHash() } });
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
|
+
/**
|
|
223
|
+
* Checks the current html page have the specified title
|
|
224
|
+
* */
|
|
225
|
+
(0, world_1.Then)(`I should see the page title {string}`, async function (pageTitle) {
|
|
226
|
+
await (0, test_1.expect)(this.page).toHaveTitle(pageTitle);
|
|
227
|
+
});
|
|
222
228
|
/**
|
|
223
229
|
* Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/)
|
|
224
230
|
* */
|
|
@@ -219,6 +219,12 @@ const path_1 = __importDefault(require("path"));
|
|
|
219
219
|
await route.continue({ headers: { ...headers, ...headersToSet.rowsHash() } });
|
|
220
220
|
});
|
|
221
221
|
});
|
|
222
|
+
/**
|
|
223
|
+
* Vérifie que la page courante a le bon titre
|
|
224
|
+
* */
|
|
225
|
+
(0, world_1.Then)(`je dois voir le titre de page {string}`, async function (pageTitle) {
|
|
226
|
+
await (0, test_1.expect)(this.page).toHaveTitle(pageTitle);
|
|
227
|
+
});
|
|
222
228
|
/**
|
|
223
229
|
* Vérifie qu'un élément Html existe avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) spécifiés
|
|
224
230
|
* */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/playwright",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.41.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.54.0",
|
|
51
51
|
"axe-core": "4.10.3",
|
|
52
52
|
"axe-playwright": "2.1.0",
|
|
53
53
|
"chalk-table": "1.0.2",
|
|
@@ -285,6 +285,13 @@ When(
|
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Checks the current html page have the specified title
|
|
290
|
+
* */
|
|
291
|
+
Then(`I should see the page title {string}`, async function(pageTitle: string) {
|
|
292
|
+
await expect(this.page).toHaveTitle(pageTitle);
|
|
293
|
+
});
|
|
294
|
+
|
|
288
295
|
/**
|
|
289
296
|
* Checks that an Html element exists with the specified [accessible role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) and [name](https://russmaxdesign.github.io/html-elements-names/)
|
|
290
297
|
* */
|
|
@@ -285,6 +285,13 @@ When(
|
|
|
285
285
|
}
|
|
286
286
|
);
|
|
287
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Vérifie que la page courante a le bon titre
|
|
290
|
+
* */
|
|
291
|
+
Then(`je dois voir le titre de page {string}`, async function(pageTitle: string) {
|
|
292
|
+
await expect(this.page).toHaveTitle(pageTitle);
|
|
293
|
+
});
|
|
294
|
+
|
|
288
295
|
/**
|
|
289
296
|
* Vérifie qu'un élément Html existe avec le [rôle accessible](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles#aria_role_types) et le [nom accessible](https://russmaxdesign.github.io/html-elements-names/) spécifiés
|
|
290
297
|
* */
|