codeceptjs 3.5.5 → 3.5.6
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/docs/build/FileSystem.js +1 -1
- package/docs/build/Playwright.js +51 -40
- package/docs/build/Puppeteer.js +4 -4
- package/docs/build/WebDriver.js +4 -4
- package/docs/changelog.md +1 -325
- package/docs/community-helpers.md +4 -8
- package/docs/examples.md +2 -8
- package/docs/helpers/FileSystem.md +1 -1
- package/docs/helpers/Playwright.md +1 -1
- package/docs/helpers/Puppeteer.md +1 -1
- package/docs/helpers/WebDriver.md +1 -1
- package/lib/codecept.js +3 -0
- package/lib/command/info.js +24 -0
- package/lib/command/run-workers.js +3 -2
- package/lib/command/run.js +3 -2
- package/lib/data/context.js +14 -6
- package/lib/helper/FileSystem.js +1 -1
- package/lib/helper/Playwright.js +51 -40
- package/lib/helper/Puppeteer.js +4 -4
- package/lib/helper/WebDriver.js +4 -4
- package/lib/helper/scripts/highlightElement.js +1 -1
- package/lib/pause.js +0 -2
- package/lib/plugin/autoLogin.js +0 -5
- package/lib/plugin/retryTo.js +0 -2
- package/lib/plugin/tryTo.js +0 -3
- package/lib/session.js +1 -1
- package/package.json +13 -13
- package/translations/fr-FR.js +13 -1
- package/typings/promiseBasedTypes.d.ts +1 -1
- package/typings/types.d.ts +5 -5
- package/CHANGELOG.md +0 -2887
package/translations/fr-FR.js
CHANGED
|
@@ -12,11 +12,15 @@ module.exports = {
|
|
|
12
12
|
amOutsideAngularApp: 'suisALExtérieurDeLApplicationAngular',
|
|
13
13
|
amInsideAngularApp: 'suisALIntérieurDeLApplicationAngular',
|
|
14
14
|
waitForElement: 'attendsLElément',
|
|
15
|
-
waitForClickable: '
|
|
15
|
+
waitForClickable: 'attendsDeCliquer',
|
|
16
16
|
waitForVisible: 'attendsPourVoir',
|
|
17
|
+
waitForEnabled: 'attendsLActivationDe',
|
|
18
|
+
waitForInvisible: 'attendsLInvisibilitéDe',
|
|
19
|
+
waitInUrl: 'attendsDansLUrl',
|
|
17
20
|
waitForText: 'attendsLeTexte',
|
|
18
21
|
moveTo: 'vaisSur',
|
|
19
22
|
refresh: 'rafraîchis',
|
|
23
|
+
refreshPage: 'rafraîchisLaPage',
|
|
20
24
|
haveModule: 'ajouteLeModule',
|
|
21
25
|
resetModule: 'réinitialiseLeModule',
|
|
22
26
|
amOnPage: 'suisSurLaPage',
|
|
@@ -59,5 +63,13 @@ module.exports = {
|
|
|
59
63
|
grabCookie: 'prendsLeCookie',
|
|
60
64
|
resizeWindow: 'redimensionneLaFenêtre',
|
|
61
65
|
wait: 'attends',
|
|
66
|
+
clearField: 'effaceLeChamp',
|
|
67
|
+
dontSeeElementInDOM: 'neVoisPasDansLeDOM',
|
|
68
|
+
moveCursorTo: 'bougeLeCurseurSur',
|
|
69
|
+
scrollTo: 'défileVers',
|
|
70
|
+
sendGetRequest: 'envoieLaRequêteGet',
|
|
71
|
+
sendPutRequest: 'envoieLaRequêtePut',
|
|
72
|
+
sendDeleteRequest: 'envoieLaRequêteDelete',
|
|
73
|
+
sendPostRequest: 'envoieLaRequêtePost',
|
|
62
74
|
},
|
|
63
75
|
};
|
package/typings/types.d.ts
CHANGED
|
@@ -1147,7 +1147,7 @@ declare namespace CodeceptJS {
|
|
|
1147
1147
|
*/
|
|
1148
1148
|
amInPath(openPath: string): void;
|
|
1149
1149
|
/**
|
|
1150
|
-
* Writes
|
|
1150
|
+
* Writes text to file
|
|
1151
1151
|
*/
|
|
1152
1152
|
writeToFile(name: string, text: string): void;
|
|
1153
1153
|
/**
|
|
@@ -2778,7 +2778,7 @@ declare namespace CodeceptJS {
|
|
|
2778
2778
|
* @property [ignoreLog] - An array with console message types that are not logged to debug log. Default value is `['warning', 'log']`. E.g. you can set `[]` to log all messages. See all possible [values](https://playwright.dev/docs/api/class-consolemessage#console-message-type).
|
|
2779
2779
|
* @property [ignoreHTTPSErrors] - Allows access to untrustworthy pages, e.g. to a page with an expired certificate. Default value is `false`
|
|
2780
2780
|
* @property [bypassCSP] - bypass Content Security Policy or CSP
|
|
2781
|
-
* @property [highlightElement] - highlight the interacting elements. Default: false
|
|
2781
|
+
* @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
|
|
2782
2782
|
*/
|
|
2783
2783
|
type PlaywrightConfig = {
|
|
2784
2784
|
url?: string;
|
|
@@ -6204,7 +6204,7 @@ declare namespace CodeceptJS {
|
|
|
6204
6204
|
* @property [manualStart = false] - do not start browser before a test, start it manually inside a helper with `this.helpers["Puppeteer"]._startBrowser()`.
|
|
6205
6205
|
* @property [browser = chrome] - can be changed to `firefox` when using [puppeteer-firefox](https://codecept.io/helpers/Puppeteer-firefox).
|
|
6206
6206
|
* @property [chrome] - pass additional [Puppeteer run options](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#puppeteerlaunchoptions).
|
|
6207
|
-
* @property [highlightElement] - highlight the interacting elements. Default: false
|
|
6207
|
+
* @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
|
|
6208
6208
|
*/
|
|
6209
6209
|
type PuppeteerConfig = {
|
|
6210
6210
|
url: string;
|
|
@@ -9119,7 +9119,7 @@ declare namespace CodeceptJS {
|
|
|
9119
9119
|
* @property [desiredCapabilities] - Selenium's [desired capabilities](https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities).
|
|
9120
9120
|
* @property [manualStart = false] - do not start browser before a test, start it manually inside a helper with `this.helpers["WebDriver"]._startBrowser()`.
|
|
9121
9121
|
* @property [timeouts] - [WebDriver timeouts](http://webdriver.io/docs/timeouts.html) defined as hash.
|
|
9122
|
-
* @property [highlightElement] - highlight the interacting elements. Default: false
|
|
9122
|
+
* @property [highlightElement] - highlight the interacting elements. Default: false. Note: only activate under verbose mode (--verbose).
|
|
9123
9123
|
*/
|
|
9124
9124
|
type WebDriverConfig = {
|
|
9125
9125
|
url: string;
|
|
@@ -11545,7 +11545,7 @@ declare namespace CodeceptJS {
|
|
|
11545
11545
|
}
|
|
11546
11546
|
function session(sessionName: CodeceptJS.LocatorOrString, config: ((...params: any[]) => any) | {
|
|
11547
11547
|
[key: string]: any;
|
|
11548
|
-
}, fn?: (...params: any[]) => any):
|
|
11548
|
+
}, fn?: (...params: any[]) => any): any;
|
|
11549
11549
|
/**
|
|
11550
11550
|
* Each command in test executed through `I.` object is wrapped in Step.
|
|
11551
11551
|
* Step allows logging executed commands and triggers hook before and after step execution.
|