codeceptjs 3.3.4 → 3.3.5-beta.1

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 (61) hide show
  1. package/docs/bdd.md +12 -0
  2. package/docs/build/Playwright.js +42 -36
  3. package/docs/build/Puppeteer.js +54 -43
  4. package/docs/build/REST.js +18 -8
  5. package/docs/build/WebDriver.js +34 -25
  6. package/docs/changelog.md +0 -38
  7. package/docs/community-helpers.md +1 -0
  8. package/docs/configuration.md +21 -18
  9. package/docs/helpers/Appium.md +0 -723
  10. package/docs/helpers/Playwright.md +269 -263
  11. package/docs/helpers/Puppeteer.md +230 -222
  12. package/docs/helpers/REST.md +20 -7
  13. package/docs/helpers/WebDriver.md +265 -259
  14. package/docs/reports.md +11 -0
  15. package/docs/wiki/.git/FETCH_HEAD +1 -0
  16. package/docs/wiki/.git/HEAD +1 -0
  17. package/docs/wiki/.git/ORIG_HEAD +1 -0
  18. package/docs/wiki/.git/config +11 -0
  19. package/docs/wiki/.git/description +1 -0
  20. package/docs/wiki/.git/hooks/applypatch-msg.sample +15 -0
  21. package/docs/wiki/.git/hooks/commit-msg.sample +24 -0
  22. package/docs/wiki/.git/hooks/fsmonitor-watchman.sample +173 -0
  23. package/docs/wiki/.git/hooks/post-update.sample +8 -0
  24. package/docs/wiki/.git/hooks/pre-applypatch.sample +14 -0
  25. package/docs/wiki/.git/hooks/pre-commit.sample +49 -0
  26. package/docs/wiki/.git/hooks/pre-merge-commit.sample +13 -0
  27. package/docs/wiki/.git/hooks/pre-push.sample +53 -0
  28. package/docs/wiki/.git/hooks/pre-rebase.sample +169 -0
  29. package/docs/wiki/.git/hooks/pre-receive.sample +24 -0
  30. package/docs/wiki/.git/hooks/prepare-commit-msg.sample +42 -0
  31. package/docs/wiki/.git/hooks/push-to-checkout.sample +78 -0
  32. package/docs/wiki/.git/hooks/update.sample +128 -0
  33. package/docs/wiki/.git/index +0 -0
  34. package/docs/wiki/.git/info/exclude +6 -0
  35. package/docs/wiki/.git/logs/HEAD +1 -0
  36. package/docs/wiki/.git/logs/refs/heads/master +1 -0
  37. package/docs/wiki/.git/logs/refs/remotes/origin/HEAD +1 -0
  38. package/docs/wiki/.git/objects/pack/pack-5938044f9d30daf1c195fda4dec1d54850933935.idx +0 -0
  39. package/docs/wiki/.git/objects/pack/pack-5938044f9d30daf1c195fda4dec1d54850933935.pack +0 -0
  40. package/docs/wiki/.git/packed-refs +2 -0
  41. package/docs/wiki/.git/refs/heads/master +1 -0
  42. package/docs/wiki/.git/refs/remotes/origin/HEAD +1 -0
  43. package/docs/wiki/Community-Helpers-&-Plugins.md +7 -3
  44. package/docs/wiki/Converting-Playwright-to-Istanbul-Coverage.md +29 -0
  45. package/docs/wiki/Examples.md +39 -48
  46. package/docs/wiki/Release-Process.md +8 -8
  47. package/docs/wiki/Tests.md +62 -60
  48. package/docs/wiki/Upgrading-to-CodeceptJS-3.md +2 -2
  49. package/lib/command/generate.js +3 -0
  50. package/lib/command/init.js +83 -24
  51. package/lib/helper/Playwright.js +42 -36
  52. package/lib/helper/Puppeteer.js +54 -43
  53. package/lib/helper/REST.js +18 -8
  54. package/lib/helper/WebDriver.js +34 -25
  55. package/lib/interfaces/gherkin.js +1 -1
  56. package/lib/secret.js +1 -1
  57. package/lib/step.js +21 -9
  58. package/lib/utils.js +1 -6
  59. package/package.json +3 -3
  60. package/typings/index.d.ts +158 -0
  61. package/typings/types.d.ts +340 -94
@@ -14,14 +14,23 @@ title: REST
14
14
  REST helper allows to send additional requests to the REST API during acceptance tests.
15
15
  [Axios][1] library is used to perform requests.
16
16
 
17
+
18
+
17
19
  ## Configuration
18
20
 
19
- - endpoint: API base URL
20
- - prettyPrintJson: pretty print json for response/request on console logs
21
- - timeout: timeout for requests in milliseconds. 10000ms by default
22
- - defaultHeaders: a list of default headers
23
- - onRequest: a async function which can update request object.
24
- - maxUploadFileSize: set the max content file size in MB when performing api calls.
21
+ Type: [object][4]
22
+
23
+ ### Properties
24
+
25
+ - `endpoint` **[string][3]** API base URL
26
+ - `prettyPrintJson` **[boolean][6]?** pretty print json for response/request on console logs
27
+ - `timeout` **[number][5]?** timeout for requests in milliseconds. 10000ms by default
28
+ - `defaultHeaders` **[object][4]?** a list of default headers
29
+ - `onRequest` **[function][7]?** a async function which can update request object.
30
+ - `onResponse` **[function][7]?** a async function which can update response object.
31
+ - `maxUploadFileSize` **[number][5]?** set the max content file size in MB when performing api calls.
32
+
33
+
25
34
 
26
35
  ## Example
27
36
 
@@ -193,7 +202,7 @@ I.setRequestTimeout(10000); // In milliseconds
193
202
 
194
203
  - `newTimeout` **[number][5]** timeout in milliseconds
195
204
 
196
- [1]: https://github.com/axios/axios
205
+ : https://github.com/axios/axios
197
206
 
198
207
  [2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise
199
208
 
@@ -202,3 +211,7 @@ I.setRequestTimeout(10000); // In milliseconds
202
211
  [4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
203
212
 
204
213
  [5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
214
+
215
+ [6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
216
+
217
+ [7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function