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.
- package/README.md +0 -2
- package/docs/build/Appium.js +8 -6
- package/docs/build/GraphQL.js +25 -0
- package/docs/build/Nightmare.js +11 -6
- package/docs/build/Playwright.js +425 -193
- package/docs/build/Protractor.js +13 -8
- package/docs/build/Puppeteer.js +20 -14
- package/docs/build/TestCafe.js +17 -10
- package/docs/build/WebDriver.js +41 -37
- package/docs/changelog.md +170 -1
- package/docs/community-helpers.md +8 -4
- package/docs/examples.md +8 -2
- package/docs/helpers/Appium.md +2 -2
- package/docs/helpers/GraphQL.md +21 -0
- package/docs/helpers/Nightmare.md +2 -2
- package/docs/helpers/Playwright.md +239 -122
- package/docs/helpers/Protractor.md +2 -2
- package/docs/helpers/Puppeteer.md +3 -3
- package/docs/helpers/TestCafe.md +2 -2
- package/docs/helpers/WebDriver.md +3 -3
- package/docs/playwright.md +24 -1
- package/docs/webapi/dontSeeInField.mustache +1 -1
- package/docs/webapi/seeInField.mustache +1 -1
- package/docs/wiki/Books-&-Posts.md +0 -0
- package/docs/wiki/Community-Helpers-&-Plugins.md +8 -4
- package/docs/wiki/Converting-Playwright-to-Istanbul-Coverage.md +46 -14
- package/docs/wiki/Examples.md +8 -2
- package/docs/wiki/Google-Summer-of-Code-(GSoC)-2020.md +0 -0
- package/docs/wiki/Home.md +0 -0
- package/docs/wiki/Migration-to-Appium-v2---CodeceptJS.md +83 -0
- package/docs/wiki/Release-Process.md +0 -0
- package/docs/wiki/Roadmap.md +0 -0
- package/docs/wiki/Tests.md +0 -0
- package/docs/wiki/Upgrading-to-CodeceptJS-3.md +0 -0
- package/docs/wiki/Videos.md +0 -0
- package/lib/command/definitions.js +2 -7
- package/lib/command/run-multiple/collection.js +17 -5
- package/lib/helper/Appium.js +6 -4
- package/lib/helper/GraphQL.js +25 -0
- package/lib/helper/Nightmare.js +9 -4
- package/lib/helper/Playwright.js +422 -190
- package/lib/helper/Protractor.js +11 -6
- package/lib/helper/Puppeteer.js +18 -12
- package/lib/helper/TestCafe.js +15 -8
- package/lib/helper/WebDriver.js +39 -35
- package/lib/helper/errors/ElementNotFound.js +2 -1
- package/lib/helper/extras/PlaywrightReact.js +9 -0
- package/lib/helper/scripts/highlightElement.js +1 -1
- package/lib/interfaces/bdd.js +1 -1
- package/lib/mochaFactory.js +2 -1
- package/lib/pause.js +5 -4
- package/lib/plugin/heal.js +2 -3
- package/lib/plugin/selenoid.js +6 -1
- package/lib/step.js +27 -10
- package/lib/utils.js +4 -0
- package/lib/workers.js +3 -1
- package/package.json +14 -14
- package/typings/promiseBasedTypes.d.ts +145 -126
- package/typings/types.d.ts +152 -133
- package/CHANGELOG.md +0 -2563
- package/docs/build/Polly.js +0 -42
- package/docs/build/SeleniumWebdriver.js +0 -76
package/docs/helpers/Appium.md
CHANGED
|
@@ -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
|
package/docs/helpers/GraphQL.md
CHANGED
|
@@ -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
|