codeceptjs 4.0.0-beta.4 → 4.0.0-beta.6.esm-aria
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/README.md +89 -119
- package/bin/codecept.js +53 -54
- package/docs/webapi/clearCookie.mustache +1 -1
- package/lib/actor.js +70 -102
- package/lib/ai.js +131 -121
- package/lib/assert/empty.js +11 -12
- package/lib/assert/equal.js +16 -21
- package/lib/assert/error.js +2 -2
- package/lib/assert/include.js +11 -15
- package/lib/assert/throws.js +3 -5
- package/lib/assert/truth.js +10 -7
- package/lib/assert.js +18 -18
- package/lib/codecept.js +112 -101
- package/lib/colorUtils.js +48 -50
- package/lib/command/check.js +206 -0
- package/lib/command/configMigrate.js +13 -14
- package/lib/command/definitions.js +24 -36
- package/lib/command/dryRun.js +16 -16
- package/lib/command/generate.js +38 -39
- package/lib/command/gherkin/init.js +36 -38
- package/lib/command/gherkin/snippets.js +76 -74
- package/lib/command/gherkin/steps.js +21 -18
- package/lib/command/info.js +49 -15
- package/lib/command/init.js +41 -37
- package/lib/command/interactive.js +22 -13
- package/lib/command/list.js +11 -10
- package/lib/command/run-multiple/chunk.js +50 -47
- package/lib/command/run-multiple/collection.js +5 -5
- package/lib/command/run-multiple/run.js +3 -3
- package/lib/command/run-multiple.js +27 -47
- package/lib/command/run-rerun.js +6 -7
- package/lib/command/run-workers.js +15 -66
- package/lib/command/run.js +8 -8
- package/lib/command/utils.js +22 -21
- package/lib/command/workers/runTests.js +131 -241
- package/lib/config.js +111 -49
- package/lib/container.js +589 -244
- package/lib/data/context.js +16 -18
- package/lib/data/dataScenarioConfig.js +9 -9
- package/lib/data/dataTableArgument.js +7 -7
- package/lib/data/table.js +6 -12
- package/lib/effects.js +307 -0
- package/lib/els.js +160 -0
- package/lib/event.js +24 -19
- package/lib/globals.js +141 -0
- package/lib/heal.js +89 -81
- package/lib/helper/AI.js +3 -2
- package/lib/helper/ApiDataFactory.js +19 -19
- package/lib/helper/Appium.js +47 -51
- package/lib/helper/FileSystem.js +35 -15
- package/lib/helper/GraphQL.js +1 -1
- package/lib/helper/GraphQLDataFactory.js +4 -4
- package/lib/helper/JSONResponse.js +72 -45
- package/lib/helper/Mochawesome.js +14 -11
- package/lib/helper/Playwright.js +832 -434
- package/lib/helper/Puppeteer.js +393 -292
- package/lib/helper/REST.js +32 -27
- package/lib/helper/WebDriver.js +320 -219
- package/lib/helper/errors/ConnectionRefused.js +6 -6
- package/lib/helper/errors/ElementAssertion.js +11 -16
- package/lib/helper/errors/ElementNotFound.js +5 -9
- package/lib/helper/errors/RemoteBrowserConnectionRefused.js +5 -5
- package/lib/helper/extras/Console.js +11 -11
- package/lib/helper/extras/PlaywrightLocator.js +110 -0
- package/lib/helper/extras/PlaywrightPropEngine.js +18 -18
- package/lib/helper/extras/PlaywrightRestartOpts.js +23 -23
- package/lib/helper/extras/Popup.js +22 -22
- package/lib/helper/extras/React.js +29 -30
- package/lib/helper/network/actions.js +33 -48
- package/lib/helper/network/utils.js +76 -83
- package/lib/helper/scripts/blurElement.js +6 -6
- package/lib/helper/scripts/focusElement.js +6 -6
- package/lib/helper/scripts/highlightElement.js +9 -9
- package/lib/helper/scripts/isElementClickable.js +34 -34
- package/lib/helper.js +2 -1
- package/lib/history.js +23 -20
- package/lib/hooks.js +10 -10
- package/lib/html.js +90 -100
- package/lib/index.js +48 -21
- package/lib/listener/config.js +8 -9
- package/lib/listener/emptyRun.js +54 -0
- package/lib/listener/exit.js +10 -12
- package/lib/listener/{retry.js → globalRetry.js} +10 -10
- package/lib/listener/globalTimeout.js +166 -0
- package/lib/listener/helpers.js +43 -24
- package/lib/listener/mocha.js +4 -5
- package/lib/listener/result.js +11 -0
- package/lib/listener/steps.js +26 -23
- package/lib/listener/store.js +20 -0
- package/lib/locator.js +213 -192
- package/lib/mocha/asyncWrapper.js +264 -0
- package/lib/mocha/bdd.js +167 -0
- package/lib/mocha/cli.js +341 -0
- package/lib/mocha/factory.js +160 -0
- package/lib/{interfaces → mocha}/featureConfig.js +33 -13
- package/lib/{interfaces → mocha}/gherkin.js +75 -45
- package/lib/mocha/hooks.js +121 -0
- package/lib/mocha/index.js +21 -0
- package/lib/mocha/inject.js +46 -0
- package/lib/{interfaces → mocha}/scenarioConfig.js +32 -8
- package/lib/mocha/suite.js +89 -0
- package/lib/mocha/test.js +178 -0
- package/lib/mocha/types.d.ts +42 -0
- package/lib/mocha/ui.js +229 -0
- package/lib/output.js +86 -64
- package/lib/parser.js +44 -44
- package/lib/pause.js +160 -139
- package/lib/plugin/analyze.js +403 -0
- package/lib/plugin/{autoLogin.js → auth.js} +137 -43
- package/lib/plugin/autoDelay.js +19 -15
- package/lib/plugin/coverage.js +22 -27
- package/lib/plugin/customLocator.js +5 -5
- package/lib/plugin/customReporter.js +53 -0
- package/lib/plugin/heal.js +49 -17
- package/lib/plugin/pageInfo.js +140 -0
- package/lib/plugin/pauseOnFail.js +4 -3
- package/lib/plugin/retryFailedStep.js +60 -19
- package/lib/plugin/screenshotOnFail.js +80 -83
- package/lib/plugin/stepByStepReport.js +70 -31
- package/lib/plugin/stepTimeout.js +7 -13
- package/lib/plugin/subtitles.js +10 -9
- package/lib/recorder.js +167 -126
- package/lib/rerun.js +94 -50
- package/lib/result.js +161 -0
- package/lib/secret.js +18 -17
- package/lib/session.js +95 -89
- package/lib/step/base.js +239 -0
- package/lib/step/comment.js +10 -0
- package/lib/step/config.js +50 -0
- package/lib/step/func.js +46 -0
- package/lib/step/helper.js +50 -0
- package/lib/step/meta.js +99 -0
- package/lib/step/record.js +74 -0
- package/lib/step/retry.js +11 -0
- package/lib/step/section.js +55 -0
- package/lib/step.js +18 -332
- package/lib/steps.js +54 -0
- package/lib/store.js +37 -5
- package/lib/template/heal.js +2 -11
- package/lib/timeout.js +60 -0
- package/lib/transform.js +8 -8
- package/lib/translation.js +32 -18
- package/lib/utils.js +354 -250
- package/lib/workerStorage.js +16 -16
- package/lib/workers.js +366 -282
- package/package.json +107 -95
- package/translations/de-DE.js +5 -4
- package/translations/fr-FR.js +5 -4
- package/translations/index.js +23 -9
- package/translations/it-IT.js +5 -4
- package/translations/ja-JP.js +5 -4
- package/translations/nl-NL.js +76 -0
- package/translations/pl-PL.js +5 -4
- package/translations/pt-BR.js +5 -4
- package/translations/ru-RU.js +5 -4
- package/translations/utils.js +18 -0
- package/translations/zh-CN.js +5 -4
- package/translations/zh-TW.js +5 -4
- package/typings/index.d.ts +177 -186
- package/typings/promiseBasedTypes.d.ts +3573 -5941
- package/typings/types.d.ts +4042 -6370
- package/lib/cli.js +0 -256
- package/lib/helper/ExpectHelper.js +0 -391
- package/lib/helper/Nightmare.js +0 -1504
- package/lib/helper/Protractor.js +0 -1863
- package/lib/helper/SoftExpectHelper.js +0 -381
- package/lib/helper/TestCafe.js +0 -1414
- package/lib/helper/clientscripts/nightmare.js +0 -213
- package/lib/helper/extras/PlaywrightReactVueLocator.js +0 -43
- package/lib/helper/testcafe/testControllerHolder.js +0 -42
- package/lib/helper/testcafe/testcafe-utils.js +0 -62
- package/lib/interfaces/bdd.js +0 -81
- package/lib/listener/artifacts.js +0 -19
- package/lib/listener/timeout.js +0 -109
- package/lib/mochaFactory.js +0 -113
- package/lib/plugin/allure.js +0 -15
- package/lib/plugin/commentStep.js +0 -136
- package/lib/plugin/debugErrors.js +0 -67
- package/lib/plugin/eachElement.js +0 -127
- package/lib/plugin/fakerTransform.js +0 -49
- package/lib/plugin/retryTo.js +0 -127
- package/lib/plugin/selenoid.js +0 -384
- package/lib/plugin/standardActingHelpers.js +0 -3
- package/lib/plugin/tryTo.js +0 -115
- package/lib/plugin/wdio.js +0 -249
- package/lib/scenario.js +0 -224
- package/lib/ui.js +0 -236
- package/lib/within.js +0 -70
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeceptjs",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.6.esm-aria",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Supercharged End 2 End Testing Framework for NodeJS",
|
|
5
6
|
"keywords": [
|
|
6
7
|
"acceptance",
|
|
@@ -8,7 +9,6 @@
|
|
|
8
9
|
"end 2 end",
|
|
9
10
|
"puppeteer",
|
|
10
11
|
"webdriver",
|
|
11
|
-
"testcafe",
|
|
12
12
|
"playwright",
|
|
13
13
|
"bdd",
|
|
14
14
|
"tdd",
|
|
@@ -29,147 +29,159 @@
|
|
|
29
29
|
"docs/webapi/**"
|
|
30
30
|
],
|
|
31
31
|
"main": "lib/index.js",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": "./lib/index.js",
|
|
34
|
+
"./lib/*": "./lib/*.js",
|
|
35
|
+
"./els": "./lib/els.js",
|
|
36
|
+
"./effects": "./lib/effects.js",
|
|
37
|
+
"./steps": "./lib/steps.js",
|
|
38
|
+
"./store": "./lib/store.js"
|
|
39
|
+
},
|
|
32
40
|
"types": "typings/index.d.ts",
|
|
33
41
|
"bin": {
|
|
34
|
-
"codeceptjs": "
|
|
42
|
+
"codeceptjs": "bin/codecept.js"
|
|
43
|
+
},
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/Codeception/codeceptjs.git"
|
|
35
47
|
},
|
|
36
|
-
"repository": "Codeception/codeceptjs",
|
|
37
48
|
"scripts": {
|
|
38
|
-
"json-server": "json-server test/data/rest/db.json --host 0.0.0.0 -p 8010 --watch -m test/data/rest/headers.
|
|
49
|
+
"json-server": "json-server test/data/rest/db.json --host 0.0.0.0 -p 8010 --watch -m test/data/rest/headers.cjs",
|
|
39
50
|
"json-server:graphql": "node test/data/graphql/index.js",
|
|
40
|
-
"lint": "eslint bin/ examples/ lib/ test/ translations/ runok.
|
|
41
|
-
"lint-fix": "eslint bin/ examples/ lib/ test/ translations/ runok.
|
|
42
|
-
"prettier": "prettier --config prettier.config.js --write bin/**/*.js lib/**/*.js test/**/*.js translations/**/*.js runok.
|
|
43
|
-
"docs": "./runok.
|
|
44
|
-
"test:unit": "mocha test/unit --recursive --timeout 10000",
|
|
45
|
-
"test:runner": "mocha test/runner --recursive --timeout 10000",
|
|
51
|
+
"lint": "eslint bin/ examples/ lib/ test/ translations/ runok.cjs",
|
|
52
|
+
"lint-fix": "eslint bin/ examples/ lib/ test/ translations/ runok.cjs --fix",
|
|
53
|
+
"prettier": "prettier --config prettier.config.js --write bin/**/*.js lib/**/*.js test/**/*.js translations/**/*.js runok.cjs",
|
|
54
|
+
"docs": "./runok.cjs docs",
|
|
55
|
+
"test:unit": "mocha test/unit --recursive --timeout 10000 --reporter @testomatio/reporter/mocha",
|
|
56
|
+
"test:runner": "mocha test/runner --recursive --timeout 10000 --reporter @testomatio/reporter/mocha",
|
|
46
57
|
"test": "npm run test:unit && npm run test:runner",
|
|
47
|
-
"test:appium-quick": "mocha test/helper/
|
|
48
|
-
"test:appium-other": "mocha test/helper/
|
|
49
|
-
"test:ios:appium-quick": "mocha test/helper/
|
|
50
|
-
"test:ios:appium-other": "mocha test/helper/
|
|
58
|
+
"test:appium-quick": "mocha test/helper/Appium_test.js --grep 'quick' --reporter @testomatio/reporter/mocha",
|
|
59
|
+
"test:appium-other": "mocha test/helper/Appium_test.js --grep 'second' --reporter @testomatio/reporter/mocha",
|
|
60
|
+
"test:ios:appium-quick": "mocha test/helper/Appium_ios_test.js --grep 'quick' --reporter @testomatio/reporter/mocha",
|
|
61
|
+
"test:ios:appium-other": "mocha test/helper/Appium_ios_test.js --grep 'second' --reporter @testomatio/reporter/mocha",
|
|
51
62
|
"test-app:start": "php -S 127.0.0.1:8000 -t test/data/app",
|
|
52
63
|
"test-app:stop": "kill -9 $(lsof -t -i:8000)",
|
|
53
|
-
"test:unit:webbapi:playwright": "mocha test/helper/Playwright_test.js",
|
|
54
|
-
"test:unit:webbapi:puppeteer": "mocha test/helper/Puppeteer_test.js",
|
|
55
|
-
"test:unit:webbapi:webDriver": "mocha test/helper/WebDriver_test.js",
|
|
56
|
-
"test:unit:webbapi:webDriver:noSeleniumServer": "mocha test/helper/WebDriver.noSeleniumServer_test.js",
|
|
57
|
-
"test:unit:
|
|
58
|
-
"test:
|
|
59
|
-
"
|
|
60
|
-
"def": "./runok.js def",
|
|
64
|
+
"test:unit:webbapi:playwright": "mocha test/helper/Playwright_test.js --reporter @testomatio/reporter/mocha",
|
|
65
|
+
"test:unit:webbapi:puppeteer": "mocha test/helper/Puppeteer_test.js --reporter @testomatio/reporter/mocha",
|
|
66
|
+
"test:unit:webbapi:webDriver": "mocha test/helper/WebDriver_test.js --timeout 10000 --reporter @testomatio/reporter/mocha",
|
|
67
|
+
"test:unit:webbapi:webDriver:noSeleniumServer": "mocha test/helper/WebDriver.noSeleniumServer_test.js --timeout 10000 --reporter @testomatio/reporter/mocha",
|
|
68
|
+
"test:unit:expect": "mocha test/helper/Expect_test.js --reporter @testomatio/reporter/mocha",
|
|
69
|
+
"test:plugin": "mocha test/plugin/plugin_test.js --reporter @testomatio/reporter/mocha",
|
|
70
|
+
"def": "./runok.cjs def",
|
|
61
71
|
"dev:graphql": "node test/data/graphql/index.js",
|
|
62
|
-
"publish:site": "./runok.
|
|
63
|
-
"update-contributor-faces": "./runok.
|
|
72
|
+
"publish:site": "./runok.cjs publish:site",
|
|
73
|
+
"update-contributor-faces": "./runok.cjs contributor:faces",
|
|
64
74
|
"types-fix": "node typings/fixDefFiles.js",
|
|
65
75
|
"dtslint": "npm run types-fix && tsd",
|
|
66
76
|
"prepare": "husky install",
|
|
67
|
-
"prepare-release": "./runok.
|
|
68
|
-
"publish-beta": "./runok.
|
|
77
|
+
"prepare-release": "./runok.cjs versioning && ./runok.cjs get:commit-log",
|
|
78
|
+
"publish-beta": "./runok.cjs publish:next-beta-version"
|
|
69
79
|
},
|
|
70
80
|
"dependencies": {
|
|
71
|
-
"@codeceptjs/configure": "1.0.
|
|
72
|
-
"@codeceptjs/helper": "
|
|
73
|
-
"@cucumber/cucumber-expressions": "18",
|
|
74
|
-
"@cucumber/gherkin": "
|
|
75
|
-
"@cucumber/messages": "27.
|
|
76
|
-
"@
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"chai-match-pattern": "1.3.0",
|
|
86
|
-
"chai-string": "1.5.0",
|
|
81
|
+
"@codeceptjs/configure": "1.0.6",
|
|
82
|
+
"@codeceptjs/helper": "^4.0.0-beta.1",
|
|
83
|
+
"@cucumber/cucumber-expressions": "^18.0.1",
|
|
84
|
+
"@cucumber/gherkin": "32.1.2",
|
|
85
|
+
"@cucumber/messages": "27.2.0",
|
|
86
|
+
"@inquirer/confirm": "^5.1.14",
|
|
87
|
+
"@inquirer/core": "^10.1.15",
|
|
88
|
+
"@inquirer/input": "^4.2.1",
|
|
89
|
+
"@inquirer/prompts": "^7.8.2",
|
|
90
|
+
"@inquirer/select": "^4.3.1",
|
|
91
|
+
"@xmldom/xmldom": "0.9.8",
|
|
92
|
+
"acorn": "8.14.1",
|
|
93
|
+
"arrify": "3.0.0",
|
|
94
|
+
"axios": "1.8.4",
|
|
87
95
|
"chalk": "4.1.2",
|
|
96
|
+
"cheerio": "^1.1.0",
|
|
88
97
|
"commander": "11.1.0",
|
|
89
|
-
"cross-spawn": "7.0.
|
|
98
|
+
"cross-spawn": "7.0.6",
|
|
90
99
|
"css-to-xpath": "0.1.0",
|
|
91
100
|
"csstoxpath": "1.6.0",
|
|
92
101
|
"envinfo": "7.14.0",
|
|
93
102
|
"escape-string-regexp": "4.0.0",
|
|
94
103
|
"figures": "3.2.0",
|
|
95
104
|
"fn-args": "4.0.0",
|
|
96
|
-
"fs-extra": "11.
|
|
97
|
-
"
|
|
105
|
+
"fs-extra": "11.3.0",
|
|
106
|
+
"fuse.js": "^7.1.0",
|
|
107
|
+
"glob": "^11.0.3",
|
|
98
108
|
"html-minifier-terser": "7.2.0",
|
|
99
|
-
"
|
|
100
|
-
"
|
|
109
|
+
"inquirer": "12.9.2",
|
|
110
|
+
"invisi-data": "^1.1.2",
|
|
101
111
|
"joi": "17.13.3",
|
|
102
|
-
"js-beautify": "1.15.
|
|
112
|
+
"js-beautify": "1.15.4",
|
|
103
113
|
"lodash.clonedeep": "4.5.0",
|
|
104
114
|
"lodash.merge": "4.6.2",
|
|
105
|
-
"mkdirp": "
|
|
106
|
-
"mocha": "
|
|
107
|
-
"monocart-coverage-reports": "2.
|
|
115
|
+
"mkdirp": "3.0.1",
|
|
116
|
+
"mocha": "11.6.0",
|
|
117
|
+
"monocart-coverage-reports": "2.12.6",
|
|
108
118
|
"ms": "2.1.3",
|
|
109
|
-
"ora
|
|
119
|
+
"ora": "^8.0.0",
|
|
110
120
|
"parse-function": "5.6.10",
|
|
111
|
-
"parse5": "7.
|
|
121
|
+
"parse5": "7.3.0",
|
|
112
122
|
"promise-retry": "1.1.1",
|
|
113
123
|
"resq": "1.11.0",
|
|
114
|
-
"sprintf-js": "1.1.
|
|
115
|
-
"uuid": "11.0"
|
|
124
|
+
"sprintf-js": "1.1.3",
|
|
125
|
+
"uuid": "11.1.0"
|
|
116
126
|
},
|
|
117
127
|
"optionalDependencies": {
|
|
118
|
-
"@codeceptjs/detox-helper": "1.1.
|
|
128
|
+
"@codeceptjs/detox-helper": "1.1.8"
|
|
119
129
|
},
|
|
120
130
|
"devDependencies": {
|
|
131
|
+
"@apollo/server": "^4.12.2",
|
|
132
|
+
"@codeceptjs/expect-helper": "^1.0.2",
|
|
121
133
|
"@codeceptjs/mock-request": "0.3.1",
|
|
122
|
-
"@eslint/eslintrc": "3.
|
|
123
|
-
"@eslint/js": "9.
|
|
124
|
-
"@faker-js/faker": "9.
|
|
134
|
+
"@eslint/eslintrc": "3.3.1",
|
|
135
|
+
"@eslint/js": "9.30.0",
|
|
136
|
+
"@faker-js/faker": "9.8.0",
|
|
137
|
+
"@inquirer/testing": "^2.1.49",
|
|
125
138
|
"@pollyjs/adapter-puppeteer": "6.0.6",
|
|
126
|
-
"@pollyjs/core": "
|
|
127
|
-
"@
|
|
128
|
-
"@types/
|
|
129
|
-
"@types/
|
|
130
|
-
"@
|
|
131
|
-
"@wdio/
|
|
132
|
-
"@wdio/
|
|
133
|
-
"@
|
|
134
|
-
"
|
|
139
|
+
"@pollyjs/core": "6.0.6",
|
|
140
|
+
"@testomatio/reporter": "^2.3.1",
|
|
141
|
+
"@types/chai": "5.2.2",
|
|
142
|
+
"@types/inquirer": "9.0.7",
|
|
143
|
+
"@types/node": "24.0.10",
|
|
144
|
+
"@wdio/sauce-service": "9.12.5",
|
|
145
|
+
"@wdio/selenium-standalone-service": "8.15.0",
|
|
146
|
+
"@wdio/utils": "9.15.0",
|
|
147
|
+
"@xmldom/xmldom": "0.9.8",
|
|
148
|
+
"bunosh": "latest",
|
|
149
|
+
"chai": "^4.5.0",
|
|
135
150
|
"chai-as-promised": "7.1.2",
|
|
136
151
|
"chai-subset": "1.6.0",
|
|
137
|
-
"cheerio": "^1.0.0",
|
|
138
|
-
"contributor-faces": "1.1.0",
|
|
139
152
|
"documentation": "14.0.3",
|
|
140
|
-
"electron": "
|
|
141
|
-
"eslint": "9.
|
|
142
|
-
"eslint-
|
|
143
|
-
"eslint-plugin-
|
|
144
|
-
"eslint-plugin-mocha": "10.5.0",
|
|
153
|
+
"electron": "37.1.0",
|
|
154
|
+
"eslint": "^9.31.0",
|
|
155
|
+
"eslint-plugin-import": "2.32.0",
|
|
156
|
+
"eslint-plugin-mocha": "11.1.0",
|
|
145
157
|
"expect": "29.7.0",
|
|
146
|
-
"express": "
|
|
147
|
-
"globals": "
|
|
148
|
-
"graphql": "16.
|
|
158
|
+
"express": "5.1.0",
|
|
159
|
+
"globals": "16.2.0",
|
|
160
|
+
"graphql": "16.10.0",
|
|
161
|
+
"graphql-tag": "^2.12.6",
|
|
149
162
|
"husky": "9.1.7",
|
|
150
|
-
"
|
|
151
|
-
"jsdoc": "4.0.4",
|
|
163
|
+
"jsdoc": "^3.6.11",
|
|
152
164
|
"jsdoc-typeof-plugin": "1.0.0",
|
|
153
165
|
"json-server": "0.17.4",
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
166
|
+
"mochawesome": "^7.1.3",
|
|
167
|
+
"playwright": "1.53.0",
|
|
168
|
+
"prettier": "^3.6.2",
|
|
169
|
+
"puppeteer": "24.8.0",
|
|
157
170
|
"qrcode-terminal": "0.12.0",
|
|
158
171
|
"rosie": "2.1.1",
|
|
159
|
-
"runok": "0.9.3",
|
|
160
|
-
"semver": "7.
|
|
161
|
-
"sinon": "
|
|
172
|
+
"runok": "^0.9.3",
|
|
173
|
+
"semver": "7.7.2",
|
|
174
|
+
"sinon": "21.0.0",
|
|
162
175
|
"sinon-chai": "3.7.0",
|
|
163
|
-
"
|
|
164
|
-
"ts-morph": "24.0.0",
|
|
176
|
+
"ts-morph": "26.0.0",
|
|
165
177
|
"ts-node": "10.9.2",
|
|
166
|
-
"tsd": "^0.
|
|
178
|
+
"tsd": "^0.32.0",
|
|
167
179
|
"tsd-jsdoc": "2.5.0",
|
|
168
|
-
"typedoc": "0.
|
|
169
|
-
"typedoc-plugin-markdown": "4.
|
|
170
|
-
"typescript": "5.
|
|
171
|
-
"wdio-docker-service": "
|
|
172
|
-
"webdriverio": "
|
|
180
|
+
"typedoc": "0.28.7",
|
|
181
|
+
"typedoc-plugin-markdown": "4.7.0",
|
|
182
|
+
"typescript": "5.8.3",
|
|
183
|
+
"wdio-docker-service": "3.2.1",
|
|
184
|
+
"webdriverio": "9.12.5",
|
|
173
185
|
"xml2js": "0.6.2",
|
|
174
186
|
"xpath": "0.0.34"
|
|
175
187
|
},
|
package/translations/de-DE.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'de'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: 'Ich',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'Szenario',
|
|
6
|
-
ScenarioOutline: 'Szenariogrundriss',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: 'befinde_mich_außerhalb_der_angular_app',
|
package/translations/fr-FR.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'fr'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: 'Je',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'Scénario',
|
|
6
|
-
ScenarioOutline: 'Plan du scénario',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
Before: 'Avant',
|
|
8
9
|
After: 'Après',
|
|
9
10
|
BeforeSuite: 'AvantLaSuite',
|
package/translations/index.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import deDE from './de-DE.js'
|
|
2
|
+
import itIT from './it-IT.js'
|
|
3
|
+
import frFR from './fr-FR.js'
|
|
4
|
+
import jaJP from './ja-JP.js'
|
|
5
|
+
import plPL from './pl-PL.js'
|
|
6
|
+
import ptBR from './pt-BR.js'
|
|
7
|
+
import ruRU from './ru-RU.js'
|
|
8
|
+
import zhCN from './zh-CN.js'
|
|
9
|
+
import zhTW from './zh-TW.js'
|
|
10
|
+
import nlNL from './nl-NL.js'
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
'de-DE': deDE,
|
|
14
|
+
'it-IT': itIT,
|
|
15
|
+
'fr-FR': frFR,
|
|
16
|
+
'ja-JP': jaJP,
|
|
17
|
+
'pl-PL': plPL,
|
|
18
|
+
'pt-BR': ptBR,
|
|
19
|
+
'ru-RU': ruRU,
|
|
20
|
+
'zh-CN': zhCN,
|
|
21
|
+
'zh-TW': zhTW,
|
|
22
|
+
'nl-NL': nlNL
|
|
23
|
+
}
|
package/translations/it-IT.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'it'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: 'io',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'lo_scenario',
|
|
6
|
-
ScenarioOutline: 'Schema dello scenario',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
Before: 'Prima',
|
|
8
9
|
After: 'Dopo',
|
|
9
10
|
BeforeSuite: 'Prima_della_suite',
|
package/translations/ja-JP.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'ja'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: '私は',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'シナリオ',
|
|
6
|
-
ScenarioOutline: 'シナリオアウトライン',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: 'Angularの外に出る',
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'nl'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
I: 'Ik',
|
|
6
|
+
contexts: {
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
8
|
+
},
|
|
9
|
+
actions: {
|
|
10
|
+
amOutsideAngularApp: 'ben_buiten_angular_app',
|
|
11
|
+
amInsideAngularApp: 'ben_binnen_angular_app',
|
|
12
|
+
waitForElement: 'wacht_op_element',
|
|
13
|
+
waitForClickable: 'wacht_tot_klikbaar',
|
|
14
|
+
waitForVisible: 'wacht_tot_zichtbaar',
|
|
15
|
+
waitForEnabled: 'wacht_tot_ingeschakeld',
|
|
16
|
+
waitForInvisible: 'wacht_tot_onzichtbaar',
|
|
17
|
+
waitInUrl: 'wacht_in_url',
|
|
18
|
+
waitForText: 'wacht_op_tekst',
|
|
19
|
+
moveTo: 'beweeg_de_cursor_naar',
|
|
20
|
+
refresh: 'vernieuw_pagina',
|
|
21
|
+
refreshPage: 'vernieuw_pagina',
|
|
22
|
+
haveModule: 'heb_module',
|
|
23
|
+
resetModule: 'reset_module',
|
|
24
|
+
amOnPage: 'ben_op_pagina',
|
|
25
|
+
click: 'klik',
|
|
26
|
+
doubleClick: 'dubbelklik',
|
|
27
|
+
see: 'zie',
|
|
28
|
+
dontSee: 'zie_niet',
|
|
29
|
+
selectOption: 'selecteer_optie',
|
|
30
|
+
fillField: 'vul_veld_in',
|
|
31
|
+
pressKey: 'druk_op_toets',
|
|
32
|
+
triggerMouseEvent: 'trigger_een_muis_event',
|
|
33
|
+
attachFile: 'voeg_bestand_toe',
|
|
34
|
+
seeInField: 'zie_in_veld',
|
|
35
|
+
dontSeeInField: 'zie_niet_in_veld',
|
|
36
|
+
appendField: 'voeg_toe_aan_veld',
|
|
37
|
+
checkOption: 'vink_optie_aan',
|
|
38
|
+
seeCheckboxIsChecked: 'zie_dat_checkbox_aangevinkt_is',
|
|
39
|
+
dontSeeCheckboxIsChecked: 'zie_niet_dat_checkbox_aangevinkt_is',
|
|
40
|
+
grabTextFrom: 'pak_tekst_van',
|
|
41
|
+
grabValueFrom: 'pak_waarde_van',
|
|
42
|
+
grabAttributeFrom: 'pak_attribuut_van',
|
|
43
|
+
seeInTitle: 'zie_in_titel',
|
|
44
|
+
dontSeeInTitle: 'zie_niet_in_titel',
|
|
45
|
+
grabTitle: 'pak_titel',
|
|
46
|
+
seeElement: 'zie_element',
|
|
47
|
+
dontSeeElement: 'zie_element_niet',
|
|
48
|
+
seeInSource: 'zie_in_broncode',
|
|
49
|
+
dontSeeInSource: 'zie_niet_in_broncode',
|
|
50
|
+
executeScript: 'voer_script_uit',
|
|
51
|
+
executeAsyncScript: 'voer_asynchroon_script_uit',
|
|
52
|
+
seeInCurrentUrl: 'zie_in_huidige_url',
|
|
53
|
+
dontSeeInCurrentUrl: 'zie_niet_in_huidige_url',
|
|
54
|
+
seeCurrentUrlEquals: 'zie_dat_url_gelijk_is',
|
|
55
|
+
dontSeeCurrentUrlEquals: 'zie_dat_url_niet_gelijk_is',
|
|
56
|
+
saveScreenshot: 'sla_screenshot_op',
|
|
57
|
+
setCookie: 'stel_cookie_in',
|
|
58
|
+
clearCookie: 'verwijder_cookie',
|
|
59
|
+
seeCookie: 'zie_cookie',
|
|
60
|
+
dontSeeCookie: 'zie_cookie_niet',
|
|
61
|
+
grabCookie: 'pak_cookie',
|
|
62
|
+
resizeWindow: 'verander_venstergrootte',
|
|
63
|
+
wait: 'wacht',
|
|
64
|
+
haveHeader: 'gebruik_http_header',
|
|
65
|
+
clearField: 'wis_veld',
|
|
66
|
+
dontSeeElementInDOM: 'zie_element_niet_in_DOM',
|
|
67
|
+
moveCursorTo: 'beweeg_de_cursor_naar',
|
|
68
|
+
scrollTo: 'scroll_naar',
|
|
69
|
+
sendGetRequest: 'doe_een_get_verzoek',
|
|
70
|
+
sendPutRequest: 'doe_een_put_verzoek',
|
|
71
|
+
sendDeleteRequest: 'doe_een_delete_verzoek',
|
|
72
|
+
sendDeleteRequestWithPayload: 'doe_een_delete_verzoek_met_payload',
|
|
73
|
+
sendPostRequest: 'doe_een_post_verzoek',
|
|
74
|
+
switchTo: 'wissel_naar_iframe',
|
|
75
|
+
},
|
|
76
|
+
}
|
package/translations/pl-PL.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'pl'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: 'Ja',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'Scenariusz',
|
|
6
|
-
ScenarioOutline: 'Szablon scenariusza',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: 'jestem_poza_aplikacją_angular',
|
package/translations/pt-BR.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'pt'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: 'Eu',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'Cenário',
|
|
6
|
-
ScenarioOutline: 'Esquema do Cenário',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
Before: 'Antes',
|
|
8
9
|
After: 'Depois',
|
|
9
10
|
BeforeSuite: 'AntesDaSuite',
|
package/translations/ru-RU.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'ru'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: 'Я',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: 'Сценарий',
|
|
6
|
-
ScenarioOutline: 'Структура сценария',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
Before: 'Начало',
|
|
8
9
|
After: 'Конец',
|
|
9
10
|
BeforeSuite: 'Перед_всем',
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { readFileSync } from 'fs'
|
|
2
|
+
import { fileURLToPath } from 'url'
|
|
3
|
+
import { dirname, join } from 'path'
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
6
|
+
const __dirname = dirname(__filename)
|
|
7
|
+
|
|
8
|
+
export function gherkinTranslations(langCode) {
|
|
9
|
+
// Load gherkin languages JSON file
|
|
10
|
+
const gherkinLanguagesPath = join(__dirname, '../node_modules/@cucumber/gherkin/src/gherkin-languages.json')
|
|
11
|
+
const gherkinLanguages = JSON.parse(readFileSync(gherkinLanguagesPath, 'utf8'))
|
|
12
|
+
const { feature, scenario, scenarioOutline } = gherkinLanguages[langCode]
|
|
13
|
+
return {
|
|
14
|
+
Feature: feature[0],
|
|
15
|
+
Scenario: scenario[0],
|
|
16
|
+
ScenarioOutline: scenarioOutline[0],
|
|
17
|
+
}
|
|
18
|
+
}
|
package/translations/zh-CN.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'zh-CN'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: '我',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: '场景',
|
|
6
|
-
ScenarioOutline: '场景大纲',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: '在Angular应用外',
|
package/translations/zh-TW.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { gherkinTranslations } from './utils.js'
|
|
2
|
+
const langCode = 'zh-TW'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
2
5
|
I: '我',
|
|
3
6
|
contexts: {
|
|
4
|
-
|
|
5
|
-
Scenario: '場景',
|
|
6
|
-
ScenarioOutline: '場景大綱',
|
|
7
|
+
...gherkinTranslations(langCode),
|
|
7
8
|
},
|
|
8
9
|
actions: {
|
|
9
10
|
amOutsideAngularApp: '在Angular應用外',
|