codeceptjs 4.0.0-rc.22 → 4.0.0-rc.24

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 (82) hide show
  1. package/README.md +9 -10
  2. package/docs/ai.md +3 -51
  3. package/docs/architecture.md +16 -0
  4. package/docs/bootstrap.md +1 -1
  5. package/docs/continuous-integration.md +16 -44
  6. package/docs/custom-helpers.md +1 -1
  7. package/docs/detox.md +1 -1
  8. package/docs/docker.md +1 -30
  9. package/docs/examples.md +0 -1
  10. package/docs/helpers/Appium.md +16 -2
  11. package/docs/helpers/Playwright.md +161 -160
  12. package/docs/helpers/Puppeteer.md +143 -250
  13. package/docs/helpers/WebDriver.md +134 -177
  14. package/docs/hooks.md +11 -1
  15. package/docs/index.md +1 -1
  16. package/docs/installation.md +2 -19
  17. package/docs/locators.md +1 -1
  18. package/docs/migrate-from-cypress.md +98 -0
  19. package/docs/migrate-from-java.md +108 -0
  20. package/docs/migrate-from-protractor.md +101 -0
  21. package/docs/migrate-from-testcafe.md +99 -0
  22. package/docs/migration-4.md +195 -8
  23. package/docs/plugins/aiTrace.md +49 -0
  24. package/docs/plugins/analyze.md +66 -0
  25. package/docs/plugins/auth.md +241 -0
  26. package/docs/plugins/autoDelay.md +48 -0
  27. package/docs/plugins/browser.md +41 -0
  28. package/docs/plugins/coverage.md +39 -0
  29. package/docs/plugins/customLocator.md +119 -0
  30. package/docs/plugins/customReporter.md +16 -0
  31. package/docs/plugins/expose.md +75 -0
  32. package/docs/plugins/heal.md +44 -0
  33. package/docs/plugins/junitReporter.md +51 -0
  34. package/docs/plugins/pageInfo.md +34 -0
  35. package/docs/plugins/pause.md +43 -0
  36. package/docs/plugins/pauseOnFail.md +18 -0
  37. package/docs/plugins/retryFailedStep.md +75 -0
  38. package/docs/plugins/screencast.md +55 -0
  39. package/docs/plugins/screenshot.md +58 -0
  40. package/docs/plugins/screenshotOnFail.md +18 -0
  41. package/docs/plugins/stepTimeout.md +65 -0
  42. package/docs/plugins.md +40 -862
  43. package/docs/reports.md +18 -4
  44. package/docs/retry.md +48 -18
  45. package/docs/store.md +94 -0
  46. package/docs/timeouts.md +1 -1
  47. package/docs/tutorial.md +207 -155
  48. package/docs/webdriver.md +6 -73
  49. package/lib/actor.js +1 -36
  50. package/lib/command/run-multiple.js +1 -2
  51. package/lib/heal.js +2 -2
  52. package/lib/helper/Playwright.js +1 -15
  53. package/lib/helper/Puppeteer.js +0 -103
  54. package/lib/helper/WebDriver.js +1 -28
  55. package/lib/helper/extras/PlaywrightLocator.js +10 -0
  56. package/lib/locator.js +0 -13
  57. package/lib/plugin/aiTrace.js +4 -3
  58. package/lib/plugin/analyze.js +3 -4
  59. package/lib/plugin/junitReporter.js +1 -1
  60. package/lib/plugin/pauseOnFail.js +3 -1
  61. package/lib/plugin/retryFailedStep.js +11 -10
  62. package/lib/plugin/screencast.js +1 -1
  63. package/lib/plugin/screenshot.js +2 -7
  64. package/lib/plugin/screenshotOnFail.js +3 -1
  65. package/lib/plugin/stepTimeout.js +3 -2
  66. package/lib/recorder.js +1 -1
  67. package/lib/step/base.js +7 -7
  68. package/lib/step/comment.js +2 -2
  69. package/lib/step/helper.js +4 -4
  70. package/lib/step/meta.js +3 -3
  71. package/lib/step/record.js +3 -3
  72. package/lib/workers.js +0 -4
  73. package/package.json +3 -4
  74. package/docs/helpers/Mochawesome.md +0 -8
  75. package/docs/helpers/MockServer.md +0 -212
  76. package/docs/helpers/Polly.md +0 -44
  77. package/docs/helpers/Protractor.md +0 -1769
  78. package/docs/helpers/SoftExpectHelper.md +0 -352
  79. package/docs/react.md +0 -70
  80. package/lib/helper/Mochawesome.js +0 -96
  81. package/lib/helper/extras/PlaywrightReactVueLocator.js +0 -61
  82. package/lib/helper/extras/React.js +0 -65
@@ -0,0 +1,65 @@
1
+ ---
2
+ permalink: /plugins/stepTimeout
3
+ editLink: false
4
+ sidebar: auto
5
+ title: stepTimeout
6
+ ---
7
+
8
+ <!-- Generated by documentation.js. Update this documentation by updating the source code. -->
9
+
10
+ ## stepTimeout
11
+
12
+ Set timeout for test steps globally.
13
+
14
+ Add this plugin to config file:
15
+
16
+ ```js
17
+ plugins: {
18
+ stepTimeout: {
19
+ enabled: true
20
+ }
21
+ }
22
+ ```
23
+
24
+ Run tests with plugin enabled:
25
+
26
+ npx codeceptjs run --plugins stepTimeout
27
+
28
+ #### Configuration:
29
+
30
+ * `timeout` - global step timeout, default 150 seconds
31
+
32
+ * `overrideStepLimits` - whether to use timeouts set in plugin config to override step timeouts set in code with `I.action(..., step.timeout(x))`, default false
33
+
34
+ * `noTimeoutSteps` - an array of steps with no timeout. Default:
35
+
36
+ * `amOnPage`
37
+ * `wait*`
38
+
39
+ you could set your own noTimeoutSteps which would replace the default one.
40
+
41
+ * `customTimeoutSteps` - an array of step actions with custom timeout. Use it to override or extend noTimeoutSteps.
42
+ You can use step names or step prefixes ending with `*`. As such, `wait*` will match all steps starting with `wait`.
43
+
44
+ #### Example
45
+
46
+ ```js
47
+ plugins: {
48
+ stepTimeout: {
49
+ enabled: true,
50
+ overrideStepLimits: true,
51
+ noTimeoutSteps: [
52
+ 'scroll*', // ignore all scroll steps
53
+ /Cookie/, // ignore all steps with a Cookie in it (by regexp)
54
+ ],
55
+ customTimeoutSteps: [
56
+ ['myFlakyStep*', 1],
57
+ ['scrollWhichRequiresTimeout', 5],
58
+ ]
59
+ }
60
+ }
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ * `config` &#x20;