codeceptjs 3.5.9 → 3.5.11

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.
Files changed (52) hide show
  1. package/README.md +14 -16
  2. package/docs/build/Appium.js +49 -49
  3. package/docs/build/Expect.js +33 -33
  4. package/docs/build/Nightmare.js +50 -50
  5. package/docs/build/Playwright.js +239 -133
  6. package/docs/build/Protractor.js +59 -59
  7. package/docs/build/Puppeteer.js +127 -107
  8. package/docs/build/TestCafe.js +48 -48
  9. package/docs/build/WebDriver.js +112 -93
  10. package/docs/helpers/Appium.md +3 -3
  11. package/docs/helpers/Expect.md +33 -33
  12. package/docs/helpers/Playwright.md +431 -325
  13. package/docs/helpers/Puppeteer.md +50 -24
  14. package/docs/helpers/WebDriver.md +41 -13
  15. package/docs/internal-api.md +1 -0
  16. package/docs/parallel.md +114 -2
  17. package/docs/plugins.md +7 -5
  18. package/docs/react.md +2 -1
  19. package/docs/vue.md +22 -0
  20. package/docs/webapi/grabWebElement.mustache +9 -0
  21. package/docs/webapi/grabWebElements.mustache +9 -0
  22. package/docs/webapi/scrollIntoView.mustache +1 -1
  23. package/lib/ai.js +12 -3
  24. package/lib/colorUtils.js +10 -0
  25. package/lib/command/run-multiple.js +1 -1
  26. package/lib/command/run-workers.js +30 -4
  27. package/lib/command/workers/runTests.js +39 -0
  28. package/lib/event.js +2 -0
  29. package/lib/helper/Appium.js +13 -13
  30. package/lib/helper/Expect.js +33 -33
  31. package/lib/helper/Playwright.js +125 -37
  32. package/lib/helper/Puppeteer.js +49 -38
  33. package/lib/helper/WebDriver.js +29 -19
  34. package/lib/helper/extras/PlaywrightReactVueLocator.js +38 -0
  35. package/lib/html.js +3 -3
  36. package/lib/interfaces/gherkin.js +8 -1
  37. package/lib/interfaces/scenarioConfig.js +1 -0
  38. package/lib/locator.js +2 -2
  39. package/lib/pause.js +6 -3
  40. package/lib/plugin/autoLogin.js +4 -2
  41. package/lib/plugin/heal.js +40 -7
  42. package/lib/plugin/retryFailedStep.js +6 -1
  43. package/lib/plugin/stepByStepReport.js +2 -2
  44. package/lib/plugin/tryTo.js +5 -4
  45. package/lib/recorder.js +12 -5
  46. package/lib/ui.js +1 -0
  47. package/lib/workers.js +2 -0
  48. package/package.json +28 -25
  49. package/typings/index.d.ts +1 -1
  50. package/typings/promiseBasedTypes.d.ts +195 -76
  51. package/typings/types.d.ts +191 -145
  52. package/lib/helper/extras/PlaywrightReact.js +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeceptjs",
3
- "version": "3.5.9",
3
+ "version": "3.5.11",
4
4
  "description": "Supercharged End 2 End Testing Framework for NodeJS",
5
5
  "keywords": [
6
6
  "acceptance",
@@ -59,18 +59,19 @@
59
59
  "publish:site": "./runok.js publish:site",
60
60
  "update-contributor-faces": "./runok.js contributor:faces",
61
61
  "dtslint": "dtslint typings --localTs './node_modules/typescript/lib'",
62
- "prepare": "husky install"
62
+ "prepare": "husky install",
63
+ "prepare-release": "./runok.js versioning && ./runok.js get:commit-log"
63
64
  },
64
65
  "dependencies": {
65
66
  "@codeceptjs/configure": "0.10.0",
66
67
  "@codeceptjs/helper": "2.0.1",
67
- "@cucumber/cucumber-expressions": "16",
68
+ "@cucumber/cucumber-expressions": "17",
68
69
  "@cucumber/gherkin": "26",
69
70
  "@cucumber/messages": "22.0.0",
70
71
  "@xmldom/xmldom": "0.8.10",
71
- "acorn": "8.10.0",
72
+ "acorn": "8.11.2",
72
73
  "arrify": "2.0.1",
73
- "axios": "1.3.3",
74
+ "axios": "1.6.3",
74
75
  "chai": "4.3.8",
75
76
  "chai-deep-match": "1.2.1",
76
77
  "chai-exclude": "^2.1.0",
@@ -79,19 +80,19 @@
79
80
  "chai-match-pattern": "^1.3.0",
80
81
  "chai-string": "^1.5.0",
81
82
  "chalk": "4.1.2",
82
- "commander": "11.0.0",
83
+ "commander": "11.1.0",
84
+ "convert-cssxpath": "1.0.2",
83
85
  "cross-spawn": "7.0.3",
84
- "css-to-xpath": "0.1.0",
85
- "envinfo": "7.8.1",
86
+ "envinfo": "7.11.0",
86
87
  "escape-string-regexp": "4.0.0",
87
88
  "figures": "3.2.0",
88
89
  "fn-args": "4.0.0",
89
- "fs-extra": "8.1.0",
90
+ "fs-extra": "11.2.0",
90
91
  "glob": "6.0.1",
91
- "html-minifier": "4.0.0",
92
+ "html-minifier-terser": "^7.2.0",
92
93
  "inquirer": "6.5.2",
93
94
  "joi": "17.11.0",
94
- "js-beautify": "1.14.9",
95
+ "js-beautify": "1.14.11",
95
96
  "lodash.clonedeep": "4.5.0",
96
97
  "lodash.merge": "4.6.2",
97
98
  "mkdirp": "1.0.4",
@@ -102,12 +103,14 @@
102
103
  "parse-function": "5.6.4",
103
104
  "parse5": "7.1.2",
104
105
  "promise-retry": "1.1.1",
105
- "resq": "1.10.2",
106
+ "resq": "1.11.0",
106
107
  "sprintf-js": "1.1.1",
107
108
  "uuid": "9.0"
108
109
  },
110
+ "optionalDependencies": {
111
+ "@codeceptjs/detox-helper": "1.0.2"
112
+ },
109
113
  "devDependencies": {
110
- "@codeceptjs/detox-helper": "1.0.2",
111
114
  "@codeceptjs/mock-request": "0.3.1",
112
115
  "@faker-js/faker": "7.6.0",
113
116
  "@pollyjs/adapter-puppeteer": "6.0.6",
@@ -115,17 +118,17 @@
115
118
  "@types/chai": "^4.3.7",
116
119
  "@types/inquirer": "9.0.3",
117
120
  "@types/node": "20.4.4",
118
- "@wdio/sauce-service": "8.3.8",
121
+ "@wdio/sauce-service": "8.27.0",
119
122
  "@wdio/selenium-standalone-service": "8.3.2",
120
- "@wdio/utils": "8.20.3",
123
+ "@wdio/utils": "8.27.0",
121
124
  "apollo-server-express": "2.25.3",
122
125
  "chai-as-promised": "7.1.1",
123
126
  "chai-subset": "1.6.0",
124
127
  "contributor-faces": "1.1.0",
125
128
  "documentation": "12.3.0",
126
129
  "dtslint": "4.2.1",
127
- "electron": "27.0.4",
128
- "eslint": "8.53.0",
130
+ "electron": "28.0.0",
131
+ "eslint": "8.56.0",
129
132
  "eslint-config-airbnb-base": "15.0.0",
130
133
  "eslint-plugin-import": "2.29.0",
131
134
  "eslint-plugin-mocha": "6.3.0",
@@ -137,7 +140,7 @@
137
140
  "jsdoc": "3.6.11",
138
141
  "jsdoc-typeof-plugin": "1.0.0",
139
142
  "json-server": "0.10.1",
140
- "playwright": "1.39.0",
143
+ "playwright": "1.40.1",
141
144
  "puppeteer": "21.1.1",
142
145
  "qrcode-terminal": "0.12.0",
143
146
  "rosie": "2.1.0",
@@ -145,17 +148,17 @@
145
148
  "sinon": "17.0.1",
146
149
  "sinon-chai": "3.7.0",
147
150
  "testcafe": "3.3.0",
148
- "ts-morph": "19.0.0",
149
- "ts-node": "10.9.1",
151
+ "ts-morph": "21.0.1",
152
+ "ts-node": "10.9.2",
150
153
  "tsd-jsdoc": "2.5.0",
151
- "typedoc": "0.25.3",
152
- "typedoc-plugin-markdown": "3.13.4",
153
- "typescript": "5.2.2",
154
+ "typedoc": "0.25.4",
155
+ "typedoc-plugin-markdown": "3.17.1",
156
+ "typescript": "5.3.3",
154
157
  "wdio-docker-service": "1.5.0",
155
158
  "webdriverio": "8.3.8",
156
159
  "xml2js": "0.6.2",
157
- "xmldom": "0.6.0",
158
- "xpath": "0.0.33"
160
+ "@xmldom/xmldom": "0.8.10",
161
+ "xpath": "0.0.34"
159
162
  },
160
163
  "engines": {
161
164
  "node": ">=16.0",
@@ -431,7 +431,7 @@ declare namespace CodeceptJS {
431
431
  | string
432
432
  | ILocator
433
433
  | Locator
434
- | CustomLocators[keyof CustomLocators];
434
+ | CustomLocators;
435
435
 
436
436
  type StringOrSecret = string | CodeceptJS.Secret;
437
437