@uuv/playwright 3.46.2 → 3.47.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/lib/config.d.ts +1 -1
- package/dist/lib/config.js +1 -1
- package/package.json +5 -5
- package/src/cucumber/step_definitions/playwright/generated/_en-generated-cucumber-steps-definition.ts +13 -13
- package/src/cucumber/step_definitions/playwright/generated/_fr-generated-cucumber-steps-definition.ts +13 -13
package/dist/lib/config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function buildConfig(features: string[], steps
|
|
1
|
+
export declare function buildConfig(features: string[], steps?: string[], output?: string, featuresRoot?: string): string;
|
package/dist/lib/config.js
CHANGED
|
@@ -6,7 +6,7 @@ function buildConfig(features, steps = [
|
|
|
6
6
|
"../node_modules/@uuv/playwright/dist/cucumber/preprocessor/index.js",
|
|
7
7
|
"cucumber/step_definitions/**/*.{js,ts}",
|
|
8
8
|
"../node_modules/@uuv/playwright/dist/cucumber/step_definitions/playwright/**/*.js"
|
|
9
|
-
], output = ".uuv-features-gen", featuresRoot) {
|
|
9
|
+
], output = ".uuv-features-gen", featuresRoot = ".") {
|
|
10
10
|
return (0, playwright_bdd_1.defineBddConfig)({
|
|
11
11
|
features: features,
|
|
12
12
|
steps: steps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uuv/playwright",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.47.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",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@cucumber/cucumber": "11.0.1",
|
|
47
47
|
"@cucumber/tag-expressions": "6.2.0",
|
|
48
|
-
"@playwright/test": "1.
|
|
49
|
-
"@uuv/a11y": "1.0.0-beta.
|
|
50
|
-
"@uuv/runner-commons": "2.
|
|
48
|
+
"@playwright/test": "^1.55.0",
|
|
49
|
+
"@uuv/a11y": "1.0.0-beta.78",
|
|
50
|
+
"@uuv/runner-commons": "2.60.0",
|
|
51
51
|
"axe-core": "4.10.3",
|
|
52
52
|
"axe-playwright": "2.1.0",
|
|
53
53
|
"chalk-table": "1.0.2",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"lodash": "^4.17.21",
|
|
57
57
|
"multiple-cucumber-html-reporter": "3.9.0",
|
|
58
58
|
"nanoid": "3.3.11",
|
|
59
|
-
"playwright-bdd": "8.
|
|
59
|
+
"playwright-bdd": "8.4.0",
|
|
60
60
|
"ts-node": "10.9.2",
|
|
61
61
|
"typescript": "5.8.3"
|
|
62
62
|
},
|
|
@@ -19,7 +19,7 @@ import { DEFAULT_TIMEOUT, fs, KEY_PRESS } from "@uuv/runner-commons";
|
|
|
19
19
|
|
|
20
20
|
import { checkA11y, injectAxe } from "axe-playwright";
|
|
21
21
|
import { devices, expect } from "@playwright/test";
|
|
22
|
-
import { Locator
|
|
22
|
+
import { Locator } from "playwright";
|
|
23
23
|
import { DataTable } from "@cucumber/cucumber";
|
|
24
24
|
import {
|
|
25
25
|
addCookie,
|
|
@@ -377,8 +377,8 @@ Then(`I should not see an element with testId {string}`, async function(testId:
|
|
|
377
377
|
Then(
|
|
378
378
|
`I should not have any axe-core accessibility issue`,
|
|
379
379
|
async function() {
|
|
380
|
-
await injectAxe(this.page as
|
|
381
|
-
await checkA11y(this.page as
|
|
380
|
+
await injectAxe(this.page as any);
|
|
381
|
+
await checkA11y(this.page as any);
|
|
382
382
|
});
|
|
383
383
|
|
|
384
384
|
/**
|
|
@@ -387,10 +387,10 @@ Then(
|
|
|
387
387
|
Then(
|
|
388
388
|
`I should not have any axe-core accessibility issue with option json fixture {}`,
|
|
389
389
|
async function(option: any) {
|
|
390
|
-
await injectAxe(this.page as
|
|
390
|
+
await injectAxe(this.page as any);
|
|
391
391
|
const optionFile = await fs.readFileSync(path.join(getConfigDir(), `playwright/fixtures/${option}`));
|
|
392
392
|
const optionJson = JSON.parse(optionFile.toString());
|
|
393
|
-
await checkA11y(this.page as
|
|
393
|
+
await checkA11y(this.page as any, undefined, {
|
|
394
394
|
axeOptions: optionJson as RunOptions
|
|
395
395
|
});
|
|
396
396
|
});
|
|
@@ -406,11 +406,11 @@ function getConfigDir(): string {
|
|
|
406
406
|
Then(
|
|
407
407
|
`I should not have any axe-core accessibility issue with context json fixture {} and option json fixture {}`,
|
|
408
408
|
async function(context: any, option: any) {
|
|
409
|
-
await injectAxe(this.page as
|
|
409
|
+
await injectAxe(this.page as any);
|
|
410
410
|
const contextFile = await fs.readFileSync(path.join(getConfigDir(), `playwright/fixtures/${context}`));
|
|
411
411
|
const optionFile = await fs.readFileSync(path.join(getConfigDir(), `playwright/fixtures/${option}`));
|
|
412
412
|
const optionJson = JSON.parse(optionFile.toString());
|
|
413
|
-
await checkA11y(this.page as
|
|
413
|
+
await checkA11y(this.page as any, JSON.parse(contextFile.toString()) as ContextObject, {
|
|
414
414
|
axeOptions: optionJson as RunOptions
|
|
415
415
|
});
|
|
416
416
|
});
|
|
@@ -421,8 +421,8 @@ Then(
|
|
|
421
421
|
Then(
|
|
422
422
|
`I should not have any axe-core critical accessibility issue`,
|
|
423
423
|
async function() {
|
|
424
|
-
await injectAxe(this.page as
|
|
425
|
-
await checkA11y(this.page as
|
|
424
|
+
await injectAxe(this.page as any);
|
|
425
|
+
await checkA11y(this.page as any, undefined, {
|
|
426
426
|
includedImpacts: ["critical"]
|
|
427
427
|
});
|
|
428
428
|
});
|
|
@@ -433,8 +433,8 @@ Then(
|
|
|
433
433
|
Then(
|
|
434
434
|
`I should not have any axe-core accessibility issue with {} impact(s)`,
|
|
435
435
|
async function(impacts: any) {
|
|
436
|
-
await injectAxe(this.page as
|
|
437
|
-
await checkA11y(this.page as
|
|
436
|
+
await injectAxe(this.page as any);
|
|
437
|
+
await checkA11y(this.page as any, undefined, {
|
|
438
438
|
includedImpacts: [impacts]
|
|
439
439
|
});
|
|
440
440
|
});
|
|
@@ -445,8 +445,8 @@ Then(
|
|
|
445
445
|
Then(
|
|
446
446
|
`I should not have any axe-core accessibility issue with accessibility standard(s) {}`,
|
|
447
447
|
async function(tags: any) {
|
|
448
|
-
await injectAxe(this.page as
|
|
449
|
-
await checkA11y(this.page as
|
|
448
|
+
await injectAxe(this.page as any);
|
|
449
|
+
await checkA11y(this.page as any, undefined, {
|
|
450
450
|
axeOptions: {
|
|
451
451
|
runOnly: {
|
|
452
452
|
type: "tag",
|
|
@@ -19,7 +19,7 @@ import { DEFAULT_TIMEOUT, fs, KEY_PRESS } from "@uuv/runner-commons";
|
|
|
19
19
|
|
|
20
20
|
import { checkA11y, injectAxe } from "axe-playwright";
|
|
21
21
|
import { devices, expect } from "@playwright/test";
|
|
22
|
-
import { Locator
|
|
22
|
+
import { Locator } from "playwright";
|
|
23
23
|
import { DataTable } from "@cucumber/cucumber";
|
|
24
24
|
import {
|
|
25
25
|
addCookie,
|
|
@@ -377,8 +377,8 @@ Then(`je ne dois pas voir un élément ayant pour testId {string}`, async functi
|
|
|
377
377
|
Then(
|
|
378
378
|
`je ne dois pas avoir de problèmes d'accessibilité axe-core`,
|
|
379
379
|
async function() {
|
|
380
|
-
await injectAxe(this.page as
|
|
381
|
-
await checkA11y(this.page as
|
|
380
|
+
await injectAxe(this.page as any);
|
|
381
|
+
await checkA11y(this.page as any);
|
|
382
382
|
});
|
|
383
383
|
|
|
384
384
|
/**
|
|
@@ -387,10 +387,10 @@ Then(
|
|
|
387
387
|
Then(
|
|
388
388
|
`je ne dois pas avoir de problèmes d'accessibilité axe-core avec le fichier json suivant d'option {}`,
|
|
389
389
|
async function(option: any) {
|
|
390
|
-
await injectAxe(this.page as
|
|
390
|
+
await injectAxe(this.page as any);
|
|
391
391
|
const optionFile = await fs.readFileSync(path.join(getConfigDir(), `playwright/fixtures/${option}`));
|
|
392
392
|
const optionJson = JSON.parse(optionFile.toString());
|
|
393
|
-
await checkA11y(this.page as
|
|
393
|
+
await checkA11y(this.page as any, undefined, {
|
|
394
394
|
axeOptions: optionJson as RunOptions
|
|
395
395
|
});
|
|
396
396
|
});
|
|
@@ -406,11 +406,11 @@ function getConfigDir(): string {
|
|
|
406
406
|
Then(
|
|
407
407
|
`je ne dois pas avoir de problèmes d'accessibilité axe-core sur le fichier json suivant de contexte {} et avec le fichier json suivant d'option {}`,
|
|
408
408
|
async function(context: any, option: any) {
|
|
409
|
-
await injectAxe(this.page as
|
|
409
|
+
await injectAxe(this.page as any);
|
|
410
410
|
const contextFile = await fs.readFileSync(path.join(getConfigDir(), `playwright/fixtures/${context}`));
|
|
411
411
|
const optionFile = await fs.readFileSync(path.join(getConfigDir(), `playwright/fixtures/${option}`));
|
|
412
412
|
const optionJson = JSON.parse(optionFile.toString());
|
|
413
|
-
await checkA11y(this.page as
|
|
413
|
+
await checkA11y(this.page as any, JSON.parse(contextFile.toString()) as ContextObject, {
|
|
414
414
|
axeOptions: optionJson as RunOptions
|
|
415
415
|
});
|
|
416
416
|
});
|
|
@@ -421,8 +421,8 @@ Then(
|
|
|
421
421
|
Then(
|
|
422
422
|
`je ne dois pas avoir de problèmes d'accessibilité axe-core de niveau critique`,
|
|
423
423
|
async function() {
|
|
424
|
-
await injectAxe(this.page as
|
|
425
|
-
await checkA11y(this.page as
|
|
424
|
+
await injectAxe(this.page as any);
|
|
425
|
+
await checkA11y(this.page as any, undefined, {
|
|
426
426
|
includedImpacts: ["critical"]
|
|
427
427
|
});
|
|
428
428
|
});
|
|
@@ -433,8 +433,8 @@ Then(
|
|
|
433
433
|
Then(
|
|
434
434
|
`je ne dois pas avoir de problèmes d'accessibilité axe-core avec l(es) impact(s) {}`,
|
|
435
435
|
async function(impacts: any) {
|
|
436
|
-
await injectAxe(this.page as
|
|
437
|
-
await checkA11y(this.page as
|
|
436
|
+
await injectAxe(this.page as any);
|
|
437
|
+
await checkA11y(this.page as any, undefined, {
|
|
438
438
|
includedImpacts: [impacts]
|
|
439
439
|
});
|
|
440
440
|
});
|
|
@@ -445,8 +445,8 @@ Then(
|
|
|
445
445
|
Then(
|
|
446
446
|
`je ne dois pas avoir de problèmes d'accessibilité axe-core avec le(s) standard(s) {}`,
|
|
447
447
|
async function(tags: any) {
|
|
448
|
-
await injectAxe(this.page as
|
|
449
|
-
await checkA11y(this.page as
|
|
448
|
+
await injectAxe(this.page as any);
|
|
449
|
+
await checkA11y(this.page as any, undefined, {
|
|
450
450
|
axeOptions: {
|
|
451
451
|
runOnly: {
|
|
452
452
|
type: "tag",
|