codeceptjs 4.2.2 → 4.2.3
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 +4 -4
- package/docs/ai.md +1 -1
- package/docs/alternative-browsers.md +4 -4
- package/docs/api.md +13 -13
- package/docs/assertions.md +6 -6
- package/docs/best.md +1 -1
- package/docs/bootstrap.md +1 -1
- package/docs/data.md +8 -8
- package/docs/helpers/ApiDataFactory.md +2 -2
- package/docs/helpers/Appium.md +2 -2
- package/docs/helpers/Decision.md +1 -1
- package/docs/helpers/Detox.md +1 -1
- package/docs/helpers/ExpectHelper.md +1 -1
- package/docs/helpers/FileSystem.md +1 -1
- package/docs/helpers/GraphQL.md +1 -1
- package/docs/helpers/GraphQLDataFactory.md +2 -2
- package/docs/helpers/JSONResponse.md +1 -1
- package/docs/helpers/Kitesurf.md +1 -1
- package/docs/helpers/Lightpanda.md +1 -1
- package/docs/helpers/MockRequest.md +1 -1
- package/docs/helpers/Moli.md +1 -1
- package/docs/helpers/Obscura.md +1 -1
- package/docs/helpers/Playwright.md +2 -2
- package/docs/helpers/Puppeteer.md +3 -3
- package/docs/helpers/REST.md +1 -1
- package/docs/helpers/WebDriver.md +1 -1
- package/docs/installation.md +1 -1
- package/docs/mobile.md +2 -2
- package/docs/parallel.md +1 -1
- package/docs/playwright.md +5 -5
- package/docs/plugins/aiTrace.md +1 -1
- package/docs/plugins/autoDelay.md +1 -1
- package/docs/plugins/customLocator.md +1 -1
- package/docs/plugins/customReporter.md +1 -1
- package/docs/plugins/junitReporter.md +2 -2
- package/docs/plugins/pageInfo.md +1 -1
- package/docs/plugins/pauseOnFail.md +1 -1
- package/docs/plugins/retryFailedStep.md +1 -1
- package/docs/plugins/screenshotOnFail.md +1 -1
- package/docs/plugins/stepTimeout.md +1 -1
- package/docs/plugins.md +10 -10
- package/docs/puppeteer.md +4 -4
- package/docs/timeouts.md +5 -5
- package/docs/webdriver.md +8 -8
- package/lib/aria.js +1 -0
- package/lib/codecept.js +1 -1
- package/lib/helper/ApiDataFactory.js +1 -1
- package/lib/helper/Appium.js +1 -1
- package/lib/helper/GraphQLDataFactory.js +1 -1
- package/lib/helper/Playwright.js +1 -1
- package/lib/helper/Puppeteer.js +3 -3
- package/lib/mocha/asyncWrapper.js +14 -3
- package/lib/mocha/test.js +1 -0
- package/lib/plugin/auth.js +3 -0
- package/lib/plugin/junitReporter.js +21 -12
- package/lib/recorder.js +20 -2
- package/lib/step/func.js +1 -1
- package/lib/step/helper.js +1 -1
- package/lib/workers.js +15 -0
- package/package.json +1 -1
- package/typings/promiseBasedTypes.d.ts +6 -6
- package/typings/types.d.ts +6 -6
package/typings/types.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare namespace CodeceptJS {
|
|
|
92
92
|
* It is required to set REST API `endpoint` which is the baseURL for all API requests.
|
|
93
93
|
* Factory file is expected to be passed via `factory` option.
|
|
94
94
|
*
|
|
95
|
-
* This Helper uses [REST](http://codecept.io/helpers/
|
|
95
|
+
* This Helper uses [REST](http://codecept.io/helpers/rest/) helper and accepts its configuration in "REST" section.
|
|
96
96
|
* For instance, to set timeout you should add:
|
|
97
97
|
*
|
|
98
98
|
* ```js
|
|
@@ -3119,7 +3119,7 @@ declare namespace CodeceptJS {
|
|
|
3119
3119
|
* It is required to set GraphQL `endpoint` which is the URL to which all the queries go to.
|
|
3120
3120
|
* Factory file is expected to be passed via `factory` option.
|
|
3121
3121
|
*
|
|
3122
|
-
* This Helper uses [GraphQL](http://codecept.io/helpers/
|
|
3122
|
+
* This Helper uses [GraphQL](http://codecept.io/helpers/graph-ql/) helper and accepts its configuration in "GraphQL" section.
|
|
3123
3123
|
* For instance, to set timeout you should add:
|
|
3124
3124
|
*
|
|
3125
3125
|
* ```js
|
|
@@ -4651,7 +4651,7 @@ declare namespace CodeceptJS {
|
|
|
4651
4651
|
* Handles a file download. A file name is required to save the file on disk.
|
|
4652
4652
|
* Files are saved to "output" directory.
|
|
4653
4653
|
*
|
|
4654
|
-
* Should be used with [FileSystem helper](https://codecept.io/helpers/
|
|
4654
|
+
* Should be used with [FileSystem helper](https://codecept.io/helpers/file-system) to check that file were downloaded correctly.
|
|
4655
4655
|
*
|
|
4656
4656
|
* ```js
|
|
4657
4657
|
* I.handleDownloads('downloads/avatar.jpg');
|
|
@@ -6284,7 +6284,7 @@ declare namespace CodeceptJS {
|
|
|
6284
6284
|
* @property [windowSize] - default window size. Set a dimension in format WIDTHxHEIGHT like `640x480`.
|
|
6285
6285
|
* @property [userAgent] - user-agent string.
|
|
6286
6286
|
* @property [manualStart = false] - do not start browser before a test, start it manually inside a helper with `this.helpers["Puppeteer"]._startBrowser()`.
|
|
6287
|
-
* @property [browser = chrome] - can be changed to `firefox` when using [puppeteer-firefox](https://codecept.io/helpers/
|
|
6287
|
+
* @property [browser = chrome] - can be changed to `firefox` when using [puppeteer-firefox](https://codecept.io/helpers/puppeteer-firefox).
|
|
6288
6288
|
* @property [chrome] - pass additional [Puppeteer run options](https://github.com/puppeteer/puppeteer/blob/main/docs/api/puppeteer.launchoptions.md).
|
|
6289
6289
|
* @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
|
|
6290
6290
|
*/
|
|
@@ -6327,7 +6327,7 @@ declare namespace CodeceptJS {
|
|
|
6327
6327
|
* ```
|
|
6328
6328
|
* Using `puppeteer-core` package, will prevent the download of browser binaries and allow connecting to an existing browser installation or for connecting to a remote one.
|
|
6329
6329
|
*
|
|
6330
|
-
* > Experimental Firefox support [can be activated](https://codecept.io/helpers/
|
|
6330
|
+
* > Experimental Firefox support [can be activated](https://codecept.io/helpers/puppeteer-firefox).
|
|
6331
6331
|
*
|
|
6332
6332
|
* <!-- configuration -->
|
|
6333
6333
|
*
|
|
@@ -6968,7 +6968,7 @@ declare namespace CodeceptJS {
|
|
|
6968
6968
|
clickLink(locator: CodeceptJS.LocatorOrString, context?: CodeceptJS.LocatorOrString): void;
|
|
6969
6969
|
/**
|
|
6970
6970
|
* Sets a directory to where save files. Allows to test file downloads.
|
|
6971
|
-
* Should be used with [FileSystem helper](https://codecept.io/helpers/
|
|
6971
|
+
* Should be used with [FileSystem helper](https://codecept.io/helpers/file-system) to check that file were downloaded correctly.
|
|
6972
6972
|
*
|
|
6973
6973
|
* By default, files are saved to `output/downloads`.
|
|
6974
6974
|
* This directory is cleaned on every `handleDownloads` call, to ensure no old files are kept.
|