codeceptjs 3.5.3 → 3.5.4

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 (62) hide show
  1. package/README.md +0 -2
  2. package/docs/build/Appium.js +8 -6
  3. package/docs/build/GraphQL.js +25 -0
  4. package/docs/build/Nightmare.js +11 -6
  5. package/docs/build/Playwright.js +425 -193
  6. package/docs/build/Protractor.js +13 -8
  7. package/docs/build/Puppeteer.js +20 -14
  8. package/docs/build/TestCafe.js +17 -10
  9. package/docs/build/WebDriver.js +41 -37
  10. package/docs/changelog.md +170 -1
  11. package/docs/community-helpers.md +8 -4
  12. package/docs/examples.md +8 -2
  13. package/docs/helpers/Appium.md +2 -2
  14. package/docs/helpers/GraphQL.md +21 -0
  15. package/docs/helpers/Nightmare.md +2 -2
  16. package/docs/helpers/Playwright.md +239 -122
  17. package/docs/helpers/Protractor.md +2 -2
  18. package/docs/helpers/Puppeteer.md +3 -3
  19. package/docs/helpers/TestCafe.md +2 -2
  20. package/docs/helpers/WebDriver.md +3 -3
  21. package/docs/playwright.md +24 -1
  22. package/docs/webapi/dontSeeInField.mustache +1 -1
  23. package/docs/webapi/seeInField.mustache +1 -1
  24. package/docs/wiki/Books-&-Posts.md +0 -0
  25. package/docs/wiki/Community-Helpers-&-Plugins.md +8 -4
  26. package/docs/wiki/Converting-Playwright-to-Istanbul-Coverage.md +46 -14
  27. package/docs/wiki/Examples.md +8 -2
  28. package/docs/wiki/Google-Summer-of-Code-(GSoC)-2020.md +0 -0
  29. package/docs/wiki/Home.md +0 -0
  30. package/docs/wiki/Migration-to-Appium-v2---CodeceptJS.md +83 -0
  31. package/docs/wiki/Release-Process.md +0 -0
  32. package/docs/wiki/Roadmap.md +0 -0
  33. package/docs/wiki/Tests.md +0 -0
  34. package/docs/wiki/Upgrading-to-CodeceptJS-3.md +0 -0
  35. package/docs/wiki/Videos.md +0 -0
  36. package/lib/command/definitions.js +2 -7
  37. package/lib/command/run-multiple/collection.js +17 -5
  38. package/lib/helper/Appium.js +6 -4
  39. package/lib/helper/GraphQL.js +25 -0
  40. package/lib/helper/Nightmare.js +9 -4
  41. package/lib/helper/Playwright.js +422 -190
  42. package/lib/helper/Protractor.js +11 -6
  43. package/lib/helper/Puppeteer.js +18 -12
  44. package/lib/helper/TestCafe.js +15 -8
  45. package/lib/helper/WebDriver.js +39 -35
  46. package/lib/helper/errors/ElementNotFound.js +2 -1
  47. package/lib/helper/extras/PlaywrightReact.js +9 -0
  48. package/lib/helper/scripts/highlightElement.js +1 -1
  49. package/lib/interfaces/bdd.js +1 -1
  50. package/lib/mochaFactory.js +2 -1
  51. package/lib/pause.js +5 -4
  52. package/lib/plugin/heal.js +2 -3
  53. package/lib/plugin/selenoid.js +6 -1
  54. package/lib/step.js +27 -10
  55. package/lib/utils.js +4 -0
  56. package/lib/workers.js +3 -1
  57. package/package.json +14 -14
  58. package/typings/promiseBasedTypes.d.ts +145 -126
  59. package/typings/types.d.ts +152 -133
  60. package/CHANGELOG.md +0 -2563
  61. package/docs/build/Polly.js +0 -42
  62. package/docs/build/SeleniumWebdriver.js +0 -76
@@ -941,7 +941,7 @@ I.dontSeeInField({ css: 'form input.email' }, 'user@user.com'); // field by CSS
941
941
  #### Parameters
942
942
 
943
943
  - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
944
- - `value` **[string][5]** value to check.
944
+ - `value` **([string][5] \| [object][10])** value to check.
945
945
  ⚠️ returns a _promise_ which is synchronized internally by recorder
946
946
 
947
947
  ### dontSee
@@ -1171,7 +1171,7 @@ I.seeInField('#searchform input','Search');
1171
1171
  #### Parameters
1172
1172
 
1173
1173
  - `field` **([string][5] \| [object][10])** located by label|name|CSS|XPath|strict locator.
1174
- - `value` **[string][5]** value to check.
1174
+ - `value` **([string][5] \| [object][10])** value to check.
1175
1175
  ⚠️ returns a _promise_ which is synchronized internally by recorder
1176
1176
 
1177
1177
  ### see
@@ -68,6 +68,27 @@ Prepares request for axios call
68
68
 
69
69
  Returns **[object][2]** graphQLRequest
70
70
 
71
+ ### amBearerAuthenticated
72
+
73
+ Adds a header for Bearer authentication
74
+
75
+ ```js
76
+ // we use secret function to hide token from logs
77
+ I.amBearerAuthenticated(secret('heregoestoken'))
78
+ ```
79
+
80
+ #### Parameters
81
+
82
+ - `accessToken` **([string][3] | CodeceptJS.Secret)** Bearer access token
83
+
84
+ ### haveRequestHeaders
85
+
86
+ Sets request headers for all requests of this test
87
+
88
+ #### Parameters
89
+
90
+ - `headers` **[object][2]** headers list
91
+
71
92
  ### sendMutation
72
93
 
73
94
  Send query to GraphQL endpoint over http
@@ -305,7 +305,7 @@ I.dontSeeInField({ css: 'form input.email' }, 'user@user.com'); // field by CSS
305
305
  #### Parameters
306
306
 
307
307
  - `field` **([string][3] | [object][4])** located by label|name|CSS|XPath|strict locator.
308
- - `value` **[string][3]** value to check.
308
+ - `value` **([string][3] | [object][4])** value to check.
309
309
  ⚠️ returns a _promise_ which is synchronized internally by recorder
310
310
 
311
311
  ### dontSeeInSource
@@ -956,7 +956,7 @@ I.seeInField('#searchform input','Search');
956
956
  #### Parameters
957
957
 
958
958
  - `field` **([string][3] | [object][4])** located by label|name|CSS|XPath|strict locator.
959
- - `value` **[string][3]** value to check.
959
+ - `value` **([string][3] | [object][4])** value to check.
960
960
  ⚠️ returns a _promise_ which is synchronized internally by recorder
961
961
 
962
962
  ### seeInSource