codeceptjs 4.0.0-beta.9.esm-aria → 4.0.0-rc.10
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 +39 -27
- package/bin/codecept.js +2 -2
- package/bin/mcp-server.js +610 -0
- package/docs/webapi/appendField.mustache +5 -0
- package/docs/webapi/attachFile.mustache +12 -0
- package/docs/webapi/checkOption.mustache +1 -1
- package/docs/webapi/clearField.mustache +5 -0
- package/docs/webapi/dontSeeCurrentPathEquals.mustache +10 -0
- package/docs/webapi/dontSeeElement.mustache +4 -0
- package/docs/webapi/dontSeeInField.mustache +5 -0
- package/docs/webapi/fillField.mustache +5 -0
- package/docs/webapi/moveCursorTo.mustache +5 -1
- package/docs/webapi/seeCurrentPathEquals.mustache +10 -0
- package/docs/webapi/seeElement.mustache +4 -0
- package/docs/webapi/seeInField.mustache +5 -0
- package/docs/webapi/selectOption.mustache +5 -0
- package/docs/webapi/uncheckOption.mustache +1 -1
- package/lib/actor.js +12 -8
- package/lib/codecept.js +51 -18
- package/lib/command/definitions.js +14 -7
- package/lib/command/init.js +2 -4
- package/lib/command/run-workers.js +13 -2
- package/lib/command/workers/runTests.js +121 -9
- package/lib/config.js +24 -33
- package/lib/container.js +177 -28
- package/lib/element/WebElement.js +81 -2
- package/lib/els.js +12 -6
- package/lib/helper/Appium.js +8 -8
- package/lib/helper/GraphQL.js +6 -4
- package/lib/helper/JSONResponse.js +3 -4
- package/lib/helper/Playwright.js +339 -505
- package/lib/helper/Puppeteer.js +324 -89
- package/lib/helper/REST.js +15 -9
- package/lib/helper/WebDriver.js +311 -81
- package/lib/helper/errors/ElementNotFound.js +5 -2
- package/lib/helper/errors/MultipleElementsFound.js +52 -0
- package/lib/helper/extras/elementSelection.js +58 -0
- package/lib/helper/scripts/dropFile.js +11 -0
- package/lib/html.js +14 -1
- package/lib/listener/config.js +11 -3
- package/lib/listener/globalRetry.js +32 -6
- package/lib/listener/helpers.js +2 -14
- package/lib/locator.js +32 -0
- package/lib/mocha/cli.js +16 -0
- package/lib/mocha/factory.js +7 -27
- package/lib/mocha/gherkin.js +4 -4
- package/lib/mocha/test.js +4 -2
- package/lib/output.js +2 -2
- package/lib/plugin/aiTrace.js +464 -0
- package/lib/plugin/auth.js +2 -1
- package/lib/plugin/retryFailedStep.js +28 -19
- package/lib/plugin/stepByStepReport.js +5 -1
- package/lib/step/base.js +14 -1
- package/lib/step/config.js +15 -2
- package/lib/step/meta.js +18 -1
- package/lib/step/record.js +9 -1
- package/lib/utils/loaderCheck.js +162 -0
- package/lib/utils/typescript.js +449 -0
- package/lib/utils.js +48 -0
- package/lib/workers.js +163 -54
- package/package.json +43 -32
- package/typings/index.d.ts +120 -4
- package/lib/helper/extras/PlaywrightLocator.js +0 -110
- package/lib/listener/enhancedGlobalRetry.js +0 -110
- package/lib/plugin/enhancedRetryFailedStep.js +0 -99
- package/lib/plugin/htmlReporter.js +0 -3648
- package/lib/retryCoordinator.js +0 -207
- package/typings/promiseBasedTypes.d.ts +0 -11011
- package/typings/types.d.ts +0 -13073
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://stand-with-ukraine.pp.ua)
|
|
2
2
|
|
|
3
3
|
[<img src="https://img.shields.io/badge/slack-@codeceptjs-purple.svg?logo=slack">](https://join.slack.com/t/codeceptjs/shared_invite/enQtMzA5OTM4NDM2MzA4LWE4MThhN2NmYTgxNTU5MTc4YzAyYWMwY2JkMmZlYWI5MWQ2MDM5MmRmYzZmYmNiNmY5NTAzM2EwMGIwOTNhOGQ) [<img src="https://img.shields.io/badge/discourse-codeceptjs-purple">](https://codecept.discourse.group) [![NPM version][npm-image]][npm-url] [<img src="https://img.shields.io/badge/dockerhub-images-blue.svg?logo=codeceptjs">](https://hub.docker.com/r/codeceptjs/codeceptjs)
|
|
4
|
-
[](https://github.com/codeceptjs/CodeceptJS/edit/3.x/docs/ai.md) [](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
|
|
4
|
+
[](https://github.com/codeceptjs/CodeceptJS/edit/3.x/docs/ai.md) [](https://github.com/codeceptjs/CodeceptJS/blob/main/docs/mcp.md) [](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
|
|
5
5
|
|
|
6
6
|
## Build Status
|
|
7
7
|
|
|
@@ -233,48 +233,60 @@ Scenario('test title', () => {
|
|
|
233
233
|
})
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
## HTML
|
|
236
|
+
## HTML Reports
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
Generate beautiful HTML reports using **[@testomatio/reporter](https://github.com/testomatio/reporter)** package.
|
|
239
239
|
|
|
240
|
-
###
|
|
241
|
-
|
|
242
|
-
- **Interactive Dashboard**: Visual statistics, pie charts, and expandable test details
|
|
243
|
-
- **Step-by-Step Execution**: Shows individual test steps with timing and status indicators
|
|
244
|
-
- **BDD/Gherkin Support**: Full support for feature files with proper scenario formatting
|
|
245
|
-
- **System Information**: Comprehensive environment details including browser versions
|
|
246
|
-
- **Advanced Filtering**: Real-time filtering by status, tags, features, and test types
|
|
247
|
-
- **History Tracking**: Multi-run history with trend visualization
|
|
248
|
-
- **Error Details**: Clean formatting of error messages and stack traces
|
|
249
|
-
- **Artifacts Support**: Display screenshots and other test artifacts
|
|
240
|
+
### Installation
|
|
250
241
|
|
|
251
|
-
|
|
242
|
+
```sh
|
|
243
|
+
npm install @testomatio/reporter --save-dev
|
|
244
|
+
```
|
|
252
245
|
|
|
253
|
-
|
|
246
|
+
### Configuration
|
|
254
247
|
|
|
255
|
-
|
|
248
|
+
Add the `testomatio` plugin to your `codecept.conf.js`:
|
|
256
249
|
|
|
257
|
-
|
|
250
|
+
```js
|
|
251
|
+
plugins: {
|
|
252
|
+
testomatio: {
|
|
253
|
+
enabled: true,
|
|
254
|
+
require: '@testomatio/reporter/lib/adapter/codecept',
|
|
255
|
+
},
|
|
256
|
+
}
|
|
257
|
+
```
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
### Usage
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
Generate HTML reports by setting the `TESTOMATIO_HTML_REPORT_SAVE` environment variable:
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
```sh
|
|
264
|
+
TESTOMATIO_HTML_REPORT_SAVE=1 npx codeceptjs run
|
|
265
|
+
```
|
|
264
266
|
|
|
265
|
-
|
|
267
|
+
The report will be saved to `html-report/testomatio-report.html`.
|
|
266
268
|
|
|
267
|
-
|
|
269
|
+
### Features
|
|
268
270
|
|
|
269
|
-
|
|
271
|
+
- Modern, responsive interface with real-time statistics
|
|
272
|
+
- Detailed test information with step-by-step breakdown
|
|
273
|
+
- Screenshots, videos, and artifacts display
|
|
274
|
+
- BDD/Gherkin support with proper scenario formatting
|
|
275
|
+
- Customizable output location and filename
|
|
276
|
+
- Optional integration with [Testomat.io](https://testomat.io) cloud
|
|
270
277
|
|
|
271
|
-
|
|
278
|
+
### Customization
|
|
272
279
|
|
|
273
|
-
|
|
280
|
+
```sh
|
|
281
|
+
# Custom output folder
|
|
282
|
+
TESTOMATIO_HTML_REPORT_SAVE=1 TESTOMATIO_HTML_REPORT_FOLDER=./reports npx codeceptjs run
|
|
274
283
|
|
|
275
|
-
|
|
284
|
+
# Custom filename
|
|
285
|
+
TESTOMATIO_HTML_REPORT_SAVE=1 TESTOMATIO_HTML_FILENAME=my-report.html npx codeceptjs run
|
|
276
286
|
|
|
277
|
-
|
|
287
|
+
# Integrate with Testomat.io cloud
|
|
288
|
+
TESTOMATIO_HTML_REPORT_SAVE=1 TESTOMATIO=your_api_key npx codeceptjs run
|
|
289
|
+
```
|
|
278
290
|
|
|
279
291
|
## PageObjects
|
|
280
292
|
|
package/bin/codecept.js
CHANGED
|
@@ -174,7 +174,7 @@ program
|
|
|
174
174
|
.option('-R, --reporter <name>', 'specify the reporter to use')
|
|
175
175
|
.option('-S, --sort', 'sort test files')
|
|
176
176
|
.option('-b, --bail', 'bail after first test failure')
|
|
177
|
-
.option('
|
|
177
|
+
.option('--inspec', "enable node's debugger, synonym for node --debug")
|
|
178
178
|
.option('-g, --grep <pattern>', 'only run tests matching <pattern>')
|
|
179
179
|
.option('-f, --fgrep <string>', 'only run tests containing <string>')
|
|
180
180
|
.option('-i, --invert', 'inverts --grep and --fgrep matches')
|
|
@@ -276,7 +276,7 @@ program
|
|
|
276
276
|
.option('-R, --reporter <name>', 'specify the reporter to use')
|
|
277
277
|
.option('-S, --sort', 'sort test files')
|
|
278
278
|
.option('-b, --bail', 'bail after first test failure')
|
|
279
|
-
.option('
|
|
279
|
+
.option('--inspect', "enable node's debugger, synonym for node --debug")
|
|
280
280
|
.option('-g, --grep <pattern>', 'only run tests matching <pattern>')
|
|
281
281
|
.option('-f, --fgrep <string>', 'only run tests containing <string>')
|
|
282
282
|
.option('-i, --invert', 'inverts --grep and --fgrep matches')
|