codeceptjs 2.6.7 → 2.6.11
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/CHANGELOG.md +33 -6
- package/README.md +11 -11
- package/docs/advanced.md +21 -0
- package/docs/basics.md +6 -5
- package/docs/bdd.md +1 -2
- package/docs/books.md +1 -1
- package/docs/build/Appium.js +1 -2
- package/docs/build/FileSystem.js +3 -3
- package/docs/build/Mochawesome.js +1 -1
- package/docs/build/Nightmare.js +81 -5
- package/docs/build/Playwright.js +100 -17
- package/docs/build/Protractor.js +34 -2
- package/docs/build/Puppeteer.js +59 -2
- package/docs/build/TestCafe.js +23 -0
- package/docs/build/WebDriver.js +62 -16
- package/docs/changelog.md +152 -125
- package/docs/community-helpers.md +7 -3
- package/docs/configuration.md +1 -1
- package/docs/custom-helpers.md +2 -2
- package/docs/data.md +1 -1
- package/docs/detox.md +2 -2
- package/docs/email.md +1 -1
- package/docs/examples.md +12 -2
- package/docs/helpers/Appium.md +24 -5
- package/docs/helpers/Nightmare.md +42 -0
- package/docs/helpers/Playwright.md +41 -4
- package/docs/helpers/Protractor.md +14 -0
- package/docs/helpers/Puppeteer.md +38 -1
- package/docs/helpers/TestCafe.md +14 -0
- package/docs/helpers/WebDriver.md +24 -5
- package/docs/hooks.md +14 -14
- package/docs/locators.md +1 -1
- package/docs/playwright.md +13 -0
- package/docs/translation.md +21 -1
- package/docs/ui.md +2 -2
- package/docs/videos.md +4 -4
- package/docs/webapi/saveElementScreenshot.mustache +9 -0
- package/docs/webapi/type.mustache +11 -6
- package/docs/wiki/{Community-Helpers.md → Community-Helpers-&-Plugins.md} +6 -2
- package/docs/wiki/Examples.md +11 -1
- package/docs/wiki/Google-Summer-of-Code-(GSoC)-2020.md +68 -0
- package/docs/wiki/Home.md +9 -4
- package/docs/wiki/Release-Process.md +24 -0
- package/docs/wiki/Tests.md +1391 -0
- package/docs/wiki/Upgrading-to-CodeceptJS-3.md +153 -0
- package/docs/wiki/Videos.md +3 -3
- package/lib/actor.js +1 -1
- package/lib/assert/empty.js +1 -1
- package/lib/assert/equal.js +1 -1
- package/lib/assert/include.js +1 -1
- package/lib/assert/truth.js +1 -1
- package/lib/codecept.js +2 -3
- package/lib/command/configMigrate.js +3 -5
- package/lib/command/definitions.js +1 -2
- package/lib/command/dryRun.js +1 -2
- package/lib/command/gherkin/init.js +1 -1
- package/lib/command/gherkin/snippets.js +3 -3
- package/lib/command/gherkin/steps.js +2 -3
- package/lib/command/info.js +1 -2
- package/lib/command/init.js +2 -2
- package/lib/command/interactive.js +1 -2
- package/lib/command/list.js +3 -4
- package/lib/command/run-multiple.js +2 -3
- package/lib/command/run-rerun.js +2 -4
- package/lib/command/run.js +1 -2
- package/lib/container.js +2 -2
- package/lib/data/context.js +1 -1
- package/lib/event.js +1 -1
- package/lib/helper/Appium.js +1 -2
- package/lib/helper/FileSystem.js +3 -3
- package/lib/helper/Mochawesome.js +1 -1
- package/lib/helper/Nightmare.js +54 -5
- package/lib/helper/Playwright.js +75 -17
- package/lib/helper/Protractor.js +26 -2
- package/lib/helper/Puppeteer.js +34 -2
- package/lib/helper/TestCafe.js +15 -0
- package/lib/helper/WebDriver.js +43 -11
- package/lib/helper/clientscripts/PollyWebDriverExt.js +1 -1
- package/lib/hooks.js +1 -2
- package/lib/interfaces/gherkin.js +0 -1
- package/lib/listener/helpers.js +1 -2
- package/lib/listener/mocha.js +0 -1
- package/lib/locator.js +2 -2
- package/lib/pause.js +1 -1
- package/lib/plugin/allure.js +1 -1
- package/lib/plugin/autoDelay.js +3 -3
- package/lib/plugin/autoLogin.js +1 -1
- package/lib/plugin/screenshotOnFail.js +2 -1
- package/lib/plugin/standardActingHelpers.js +0 -3
- package/lib/recorder.js +1 -1
- package/lib/step.js +3 -0
- package/lib/ui.js +1 -0
- package/package.json +3 -2
- package/translations/fr-FR.js +63 -0
- package/translations/index.js +5 -4
- package/typings/types.d.ts +140 -8
- package/docs/wiki/Release-process.md +0 -25
package/docs/changelog.md
CHANGED
|
@@ -7,28 +7,55 @@ layout: Section
|
|
|
7
7
|
|
|
8
8
|
# Releases
|
|
9
9
|
|
|
10
|
+
## 2.6.11
|
|
11
|
+
|
|
12
|
+
* **[Playwright]** Playwright 1.4 compatibility
|
|
13
|
+
* **[Playwright]** Added `ignoreHTTPSErrors` config option (default: false). See [#2566](https://github.com/codeceptjs/CodeceptJS/issues/2566) by gurjeetbains
|
|
14
|
+
* Added French translation by **[vimar](https://github.com/vimar)**
|
|
15
|
+
* **[WebDriver]** Updated `dragSlider` to work in WebDriver W3C protocol. Fixes [#2557](https://github.com/codeceptjs/CodeceptJS/issues/2557) by suniljaiswal01
|
|
16
|
+
|
|
17
|
+
## 2.6.10
|
|
18
|
+
|
|
19
|
+
* Fixed saving options for suite via `Feature('title', {key: value})` by **[Diokuz](https://github.com/Diokuz)**. See [#2553](https://github.com/codeceptjs/CodeceptJS/issues/2553) and [Docs](https://codecept.io/advanced/#dynamic-configuration)
|
|
20
|
+
|
|
21
|
+
## 2.6.9
|
|
22
|
+
|
|
23
|
+
* [Puppeteer][Playwright] SessionStorage is now cleared in after hook. See [#2524](https://github.com/codeceptjs/CodeceptJS/issues/2524)
|
|
24
|
+
* When helper load failed the error stack is now logged by **[SkReD](https://github.com/SkReD)**. See [#2541](https://github.com/codeceptjs/CodeceptJS/issues/2541)
|
|
25
|
+
* Small documentation fixes.
|
|
26
|
+
|
|
27
|
+
## 2.6.8
|
|
28
|
+
|
|
29
|
+
* [WebDriver][Protractor][Playwright][Puppeteer][Nightmare] `saveElementScreenshot` method added to make screenshot of an element. By **[suniljaiswal01](https://github.com/suniljaiswal01)**
|
|
30
|
+
* [Playwright][Puppeteer] Added `type` method to type a text using keyboard with an optional delay.
|
|
31
|
+
* **[WebDriver]** Added optional `delay` argument to `type` method to slow down typing.
|
|
32
|
+
* **[Puppeteer]** Fixed `amOnPage` freeze when `getPageTimeout` is 0"; set 30 sec as default timeout by **[Vorobeyko](https://github.com/Vorobeyko)**.
|
|
33
|
+
* Fixed printing step with null argument in custom helper by **[sjana-aj](https://github.com/sjana-aj)**. See [#2494](https://github.com/codeceptjs/CodeceptJS/issues/2494)
|
|
34
|
+
* Fix missing screenshot on failure when REST helper is in use [#2513](https://github.com/codeceptjs/CodeceptJS/issues/2513) by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
35
|
+
* Improve error logging in the `screenshotOnFail` plugin [#2512](https://github.com/codeceptjs/CodeceptJS/issues/2512) by **[pablopaul](https://github.com/pablopaul)**
|
|
36
|
+
|
|
10
37
|
## 2.6.7
|
|
11
38
|
|
|
12
|
-
* Add REST helper into `standardActingHelpers` array [#2474](https://github.com/
|
|
13
|
-
* Add missing `--invert` option for `run-workers` command [#2504](https://github.com/
|
|
14
|
-
* **[WebDriver]** Introduce `forceRightClick` method [#2485](https://github.com/
|
|
15
|
-
* **[Playwright]** Fix `setCookie` method [#2491](https://github.com/
|
|
16
|
-
* **[TypeScript]** Update compilerOptions.target to es2017 [#2483](https://github.com/
|
|
17
|
-
* **[Mocha]** Honor reporter configuration [#2465](https://github.com/
|
|
39
|
+
* Add REST helper into `standardActingHelpers` array [#2474](https://github.com/codeceptjs/CodeceptJS/issues/2474) by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
40
|
+
* Add missing `--invert` option for `run-workers` command [#2504](https://github.com/codeceptjs/CodeceptJS/issues/2504) by **[pablopaul](https://github.com/pablopaul)**
|
|
41
|
+
* **[WebDriver]** Introduce `forceRightClick` method [#2485](https://github.com/codeceptjs/CodeceptJS/issues/2485) bylsuniljaiswal01
|
|
42
|
+
* **[Playwright]** Fix `setCookie` method [#2491](https://github.com/codeceptjs/CodeceptJS/issues/2491) by **[bmbarker90](https://github.com/bmbarker90)**
|
|
43
|
+
* **[TypeScript]** Update compilerOptions.target to es2017 [#2483](https://github.com/codeceptjs/CodeceptJS/issues/2483) by **[shanplourde](https://github.com/shanplourde)**
|
|
44
|
+
* **[Mocha]** Honor reporter configuration [#2465](https://github.com/codeceptjs/CodeceptJS/issues/2465) by **[trinhpham](https://github.com/trinhpham)**
|
|
18
45
|
|
|
19
46
|
## 2.6.6
|
|
20
47
|
|
|
21
48
|
* Puppeteer 4.0 support. Important: MockRequest helper won't work with Puppeter > 3.3
|
|
22
49
|
* Added `xFeature` and `Feature.skip` to skip all tests in a suite. By **[Georgegriff](https://github.com/Georgegriff)**
|
|
23
|
-
* **[Appium]** Fixed [#2428](https://github.com/
|
|
50
|
+
* **[Appium]** Fixed [#2428](https://github.com/codeceptjs/CodeceptJS/issues/2428) Android native locator support by **[idxn](https://github.com/idxn)**
|
|
24
51
|
* **[WebDriver]** Fixed `waitNumberOfVisibleElements` to actually filter visible elements. By **[ilangv](https://github.com/ilangv)**
|
|
25
|
-
* **[Puppeteer]** Fixed handling error which is not an Error object. Fixes `cannot read property indexOf of undefined` error. Fix [#2436](https://github.com/
|
|
52
|
+
* **[Puppeteer]** Fixed handling error which is not an Error object. Fixes `cannot read property indexOf of undefined` error. Fix [#2436](https://github.com/codeceptjs/CodeceptJS/issues/2436) by **[Georgegriff](https://github.com/Georgegriff)**
|
|
26
53
|
* **[Puppeteer]** Print error on page crash by **[Georgegriff](https://github.com/Georgegriff)**
|
|
27
54
|
|
|
28
55
|
## 2.6.5
|
|
29
56
|
|
|
30
|
-
* Added `test.skipped` event to run-workers, fixing allure reports with skipped tests in workers [#2391](https://github.com/
|
|
31
|
-
* **[Playwright]** Fixed calling `waitFor*` methods with custom locators [#2314](https://github.com/
|
|
57
|
+
* Added `test.skipped` event to run-workers, fixing allure reports with skipped tests in workers [#2391](https://github.com/codeceptjs/CodeceptJS/issues/2391). Fix [#2387](https://github.com/codeceptjs/CodeceptJS/issues/2387) by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
58
|
+
* **[Playwright]** Fixed calling `waitFor*` methods with custom locators [#2314](https://github.com/codeceptjs/CodeceptJS/issues/2314). Fix [#2389](https://github.com/codeceptjs/CodeceptJS/issues/2389) by **[Georgegriff](https://github.com/Georgegriff)**
|
|
32
59
|
|
|
33
60
|
## 2.6.4
|
|
34
61
|
|
|
@@ -36,8 +63,8 @@ layout: Section
|
|
|
36
63
|
|
|
37
64
|
## 2.6.3
|
|
38
65
|
|
|
39
|
-
* [stepByStepReport plugin] Fixed when using plugin with BeforeSuite. Fixes [#2337](https://github.com/
|
|
40
|
-
* [allure plugin] Fixed reporting of tests skipped by failure in before hook. Refer to [#2349](https://github.com/
|
|
66
|
+
* [stepByStepReport plugin] Fixed when using plugin with BeforeSuite. Fixes [#2337](https://github.com/codeceptjs/CodeceptJS/issues/2337) by **[mirao](https://github.com/mirao)**
|
|
67
|
+
* [allure plugin] Fixed reporting of tests skipped by failure in before hook. Refer to [#2349](https://github.com/codeceptjs/CodeceptJS/issues/2349) & [#2354](https://github.com/codeceptjs/CodeceptJS/issues/2354). Fix by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
41
68
|
|
|
42
69
|
## 2.6.2
|
|
43
70
|
|
|
@@ -50,14 +77,14 @@ layout: Section
|
|
|
50
77
|
* **[WebDriver]** Fixed `waitForEnabled` fix for webdriver 6. Fix by **[dsharapkou](https://github.com/dsharapkou)**
|
|
51
78
|
* Workers: Fixed negative failure result if use scenario with the same names. Fix by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
52
79
|
* **[MockRequest]** Updated documentation to match new helper version
|
|
53
|
-
* Fixed: skipped tests are not reported if a suite failed in `before`. Refer [#2349](https://github.com/
|
|
80
|
+
* Fixed: skipped tests are not reported if a suite failed in `before`. Refer [#2349](https://github.com/codeceptjs/CodeceptJS/issues/2349) & [#2354](https://github.com/codeceptjs/CodeceptJS/issues/2354). Fix by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
54
81
|
|
|
55
82
|
## 2.6.1
|
|
56
83
|
|
|
57
84
|
* [screenshotOnFail plugin] Fixed saving screenshot of active session.
|
|
58
|
-
* [screenshotOnFail plugin] Fix issue [#2301](https://github.com/
|
|
85
|
+
* [screenshotOnFail plugin] Fix issue [#2301](https://github.com/codeceptjs/CodeceptJS/issues/2301) when having the flag `uniqueScreenshotNames`=true results in `undefined` in screenshot file name by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
59
86
|
* **[WebDriver]** Fixed `waitForElement` not applying the optional second argument to override the default timeout in webdriverio 6. Fix by **[Mooksc](https://github.com/Mooksc)**
|
|
60
|
-
* **[WebDriver]** Updated `waitUntil` method which is used by all of the wait* functions. This updates the `waitForElement` by the same convention used to update `waitForVisible` and `waitInUrl` to be compatible with both WebDriverIO v5 & v6. See [#2313](https://github.com/
|
|
87
|
+
* **[WebDriver]** Updated `waitUntil` method which is used by all of the wait* functions. This updates the `waitForElement` by the same convention used to update `waitForVisible` and `waitInUrl` to be compatible with both WebDriverIO v5 & v6. See [#2313](https://github.com/codeceptjs/CodeceptJS/issues/2313) by **[Mooksc](https://github.com/Mooksc)**
|
|
61
88
|
|
|
62
89
|
## 2.6.0
|
|
63
90
|
|
|
@@ -82,7 +109,7 @@ I.executeScript(({x, y}) => x + y, {x, y});
|
|
|
82
109
|
* `clickLink` - deprecated
|
|
83
110
|
* `waitForClickable` - deprecated
|
|
84
111
|
* `forceClick` - added
|
|
85
|
-
* Added support for custom locators. See [#2277](https://github.com/
|
|
112
|
+
* Added support for custom locators. See [#2277](https://github.com/codeceptjs/CodeceptJS/issues/2277)
|
|
86
113
|
* Introduced [device emulation](/playwright/#device-emulation):
|
|
87
114
|
* globally via `emulate` config option
|
|
88
115
|
* per session
|
|
@@ -108,20 +135,20 @@ I.click({ shadow: ['my-app', 'recipe-hello', 'button'] });
|
|
|
108
135
|
* added `mockServer` method to use flexible PollyJS API to define mocks
|
|
109
136
|
* fixed stale browser screen in record mode.
|
|
110
137
|
* **[Playwright]** Added support on for `screenshotOnFail` plugin by **[amonkc](https://github.com/amonkc)**
|
|
111
|
-
* Gherkin improvement: setting different tags per examples. See [#2208](https://github.com/
|
|
112
|
-
* **[TestCafe]** Updated `click` to take first visible element. Fixes [#2226](https://github.com/
|
|
113
|
-
* [Puppeteer][WebDriver] Updated `waitForClickable` method to check for element overlapping. See [#2261](https://github.com/
|
|
138
|
+
* Gherkin improvement: setting different tags per examples. See [#2208](https://github.com/codeceptjs/CodeceptJS/issues/2208) by **[acuper](https://github.com/acuper)**
|
|
139
|
+
* **[TestCafe]** Updated `click` to take first visible element. Fixes [#2226](https://github.com/codeceptjs/CodeceptJS/issues/2226) by **[theTainted](https://github.com/theTainted)**
|
|
140
|
+
* [Puppeteer][WebDriver] Updated `waitForClickable` method to check for element overlapping. See [#2261](https://github.com/codeceptjs/CodeceptJS/issues/2261) by **[PiQx](https://github.com/PiQx)**
|
|
114
141
|
* **[Puppeteer]** Dropped `puppeteer-firefox` support, as Puppeteer supports Firefox natively.
|
|
115
|
-
* **[REST]** Rrespect Content-Type header. See [#2262](https://github.com/
|
|
116
|
-
* [allure plugin] Fixes BeforeSuite failures in allure reports. See [#2248](https://github.com/
|
|
117
|
-
* [WebDriver][Puppeteer][Playwright] A screenshot of for an active session is saved in multi-session mode. See [#2253](https://github.com/
|
|
142
|
+
* **[REST]** Rrespect Content-Type header. See [#2262](https://github.com/codeceptjs/CodeceptJS/issues/2262) by **[pmarshall-legacy](https://github.com/pmarshall-legacy)**
|
|
143
|
+
* [allure plugin] Fixes BeforeSuite failures in allure reports. See [#2248](https://github.com/codeceptjs/CodeceptJS/issues/2248) by **[Georgegriff](https://github.com/Georgegriff)**
|
|
144
|
+
* [WebDriver][Puppeteer][Playwright] A screenshot of for an active session is saved in multi-session mode. See [#2253](https://github.com/codeceptjs/CodeceptJS/issues/2253) by **[ChexWarrior](https://github.com/ChexWarrior)**
|
|
118
145
|
* Fixed `--profile` option by **[pablopaul](https://github.com/pablopaul)**. Profile value to be passed into `run-multiple` and `run-workers`:
|
|
119
146
|
|
|
120
147
|
```
|
|
121
148
|
npx codecept run-workers 2 --profile firefox
|
|
122
149
|
```
|
|
123
150
|
|
|
124
|
-
Value is available at `process.env.profile` (previously `process.profile`). See [#2302](https://github.com/
|
|
151
|
+
Value is available at `process.env.profile` (previously `process.profile`). See [#2302](https://github.com/codeceptjs/CodeceptJS/issues/2302). Fixes [#1968](https://github.com/codeceptjs/CodeceptJS/issues/1968) [#1315](https://github.com/codeceptjs/CodeceptJS/issues/1315)
|
|
125
152
|
|
|
126
153
|
* [commentStep Plugin introduced](/plugins#commentstep). Allows to annotate logical parts of a test:
|
|
127
154
|
|
|
@@ -142,17 +169,17 @@ I.see('You are logged out');
|
|
|
142
169
|
|
|
143
170
|
> [Playwright](https://github.com/microsoft/playwright/) is an alternative to Puppeteer which works very similarly to it but adds cross-browser support with Firefox and Webkit. Until v1.0 Playwright API is not stable but we introduce it to CodeceptJS so you could try it.
|
|
144
171
|
|
|
145
|
-
* **[Puppeteer]** Fixed basic auth support when running in multiple sessions. See [#2178](https://github.com/
|
|
146
|
-
* **[Puppeteer]** Fixed `waitForText` when there is no `body` element on page (redirect). See [#2181](https://github.com/
|
|
147
|
-
* [Selenoid plugin] Fixed overriding current capabilities by adding deepMerge. Fixes [#2183](https://github.com/
|
|
172
|
+
* **[Puppeteer]** Fixed basic auth support when running in multiple sessions. See [#2178](https://github.com/codeceptjs/CodeceptJS/issues/2178) by **[ian-bartholomew](https://github.com/ian-bartholomew)**
|
|
173
|
+
* **[Puppeteer]** Fixed `waitForText` when there is no `body` element on page (redirect). See [#2181](https://github.com/codeceptjs/CodeceptJS/issues/2181) by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
174
|
+
* [Selenoid plugin] Fixed overriding current capabilities by adding deepMerge. Fixes [#2183](https://github.com/codeceptjs/CodeceptJS/issues/2183) by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
148
175
|
* Added types for `Scenario.todo` by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
149
176
|
* Added types for Mocha by **[Vorobeyko](https://github.com/Vorobeyko)**. Fixed typing conflicts with Jest
|
|
150
177
|
* **[FileSystem]** Added methods by **[nitschSB](https://github.com/nitschSB)**
|
|
151
178
|
* `waitForFile`
|
|
152
179
|
* `seeFileContentsEqualReferenceFile`
|
|
153
|
-
* Added `--colors` option to `run` and `run-multiple` so you force colored output in dockerized environment. See [#2189](https://github.com/
|
|
154
|
-
* **[WebDriver]** Added `type` command to enter value without focusing on a field. See [#2198](https://github.com/
|
|
155
|
-
* Fixed `codeceptjs gt` command to respect config pattern for tests. See [#2200](https://github.com/
|
|
180
|
+
* Added `--colors` option to `run` and `run-multiple` so you force colored output in dockerized environment. See [#2189](https://github.com/codeceptjs/CodeceptJS/issues/2189) by **[mirao](https://github.com/mirao)**
|
|
181
|
+
* **[WebDriver]** Added `type` command to enter value without focusing on a field. See [#2198](https://github.com/codeceptjs/CodeceptJS/issues/2198) by **[xMutaGenx](https://github.com/xMutaGenx)**
|
|
182
|
+
* Fixed `codeceptjs gt` command to respect config pattern for tests. See [#2200](https://github.com/codeceptjs/CodeceptJS/issues/2200) and [#2204](https://github.com/codeceptjs/CodeceptJS/issues/2204) by **[matheo](https://github.com/matheo)**
|
|
156
183
|
|
|
157
184
|
|
|
158
185
|
## 2.4.3
|
|
@@ -172,11 +199,11 @@ I.see('You are logged out');
|
|
|
172
199
|
* works with WebDriver helper
|
|
173
200
|
* Avoid failiure report on successful retry in worker by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
174
201
|
* Added translation ability to Scenario, Feature and other context methods by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
175
|
-
* 📢 Please help us translate context methods to your language! See [italian translation](https://github.com/
|
|
202
|
+
* 📢 Please help us translate context methods to your language! See [italian translation](https://github.com/codeceptjs/CodeceptJS/blob/master/translations/it-IT.js#L3) as an example and send [patches to vocabularies](https://github.com/codeceptjs/CodeceptJS/tree/master/translations).
|
|
176
203
|
* allurePlugin: Added `say` comments to allure reports by **[PeterNgTr](https://github.com/PeterNgTr)**.
|
|
177
204
|
* Fixed no custom output folder created when executed with run-worker. Fix by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
178
|
-
* **[Puppeteer]** Fixed error description for context element not found. See [#2065](https://github.com/
|
|
179
|
-
* **[WebDriver]** Fixed `waitForClickable` to wait for exact number of seconds by **[mirao](https://github.com/mirao)**. Resolves [#2166](https://github.com/
|
|
205
|
+
* **[Puppeteer]** Fixed error description for context element not found. See [#2065](https://github.com/codeceptjs/CodeceptJS/issues/2065). Fix by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
206
|
+
* **[WebDriver]** Fixed `waitForClickable` to wait for exact number of seconds by **[mirao](https://github.com/mirao)**. Resolves [#2166](https://github.com/codeceptjs/CodeceptJS/issues/2166)
|
|
180
207
|
* Fixed setting `compilerOptions` in `jsconfig.json` file on init by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
181
208
|
* **[Filesystem]** Added method by **[nitschSB](https://github.com/nitschSB)**
|
|
182
209
|
* `seeFileContentsEqualReferenceFile`
|
|
@@ -196,20 +223,20 @@ I.see('You are logged out');
|
|
|
196
223
|
* removed question on "steps file", create it by default.
|
|
197
224
|
* Added [pauseOnFail plugin](/plugins/#pauseonfail). *Sponsored by Paul Vincent Beigang and his book "[Practical End 2 End Testing with CodeceptJS](https://leanpub.com/codeceptjs/)"*.
|
|
198
225
|
* Added [`run-rerun` command](/commands/#run-rerun) to run tests multiple times to detect and fix flaky tests. By **[Ilrilan](https://github.com/Ilrilan)** and **[Vorobeyko](https://github.com/Vorobeyko)**.
|
|
199
|
-
* Added [`Scenario.todo()` to declare tests as pending](/basics#todotest). See [#2100](https://github.com/
|
|
200
|
-
* Added support for absolute path for `output` dir. See [#2049](https://github.com/
|
|
201
|
-
* Fixed error in `npx codecept init` caused by calling `console.print`. See [#2071](https://github.com/
|
|
226
|
+
* Added [`Scenario.todo()` to declare tests as pending](/basics#todotest). See [#2100](https://github.com/codeceptjs/CodeceptJS/issues/2100) by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
227
|
+
* Added support for absolute path for `output` dir. See [#2049](https://github.com/codeceptjs/CodeceptJS/issues/2049) by **[elukoyanov](https://github.com/elukoyanov)**
|
|
228
|
+
* Fixed error in `npx codecept init` caused by calling `console.print`. See [#2071](https://github.com/codeceptjs/CodeceptJS/issues/2071) by **[Atinux](https://github.com/Atinux)**.
|
|
202
229
|
* **[Filesystem]** Methods added by **[aefluke](https://github.com/aefluke)**:
|
|
203
230
|
* `seeFileNameMatching`
|
|
204
231
|
* `grabFileNames`
|
|
205
232
|
* **[Puppeteer]** Fixed grabbing attributes with hyphen by **[Holorium](https://github.com/Holorium)**
|
|
206
233
|
* **[TestCafe]** Fixed `grabAttributeFrom` method by **[elukoyanov](https://github.com/elukoyanov)**
|
|
207
234
|
* **[MockRequest]** Added support for [Polly config options](https://netflix.github.io/pollyjs/#/configuration?id=configuration) by **[ecrmnn](https://github.com/ecrmnn)**
|
|
208
|
-
* **[TestCafe]** Fixes exiting with zero code on failure. Fixed [#2090](https://github.com/
|
|
209
|
-
* [WebDriver][Puppeteer] Added basicAuth support via config. Example: `basicAuth: {username: 'username', password: 'password'}`. See [#1962](https://github.com/
|
|
235
|
+
* **[TestCafe]** Fixes exiting with zero code on failure. Fixed [#2090](https://github.com/codeceptjs/CodeceptJS/issues/2090) with [#2106](https://github.com/codeceptjs/CodeceptJS/issues/2106) by **[koushikmohan1996](https://github.com/koushikmohan1996)**
|
|
236
|
+
* [WebDriver][Puppeteer] Added basicAuth support via config. Example: `basicAuth: {username: 'username', password: 'password'}`. See [#1962](https://github.com/codeceptjs/CodeceptJS/issues/1962) by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
210
237
|
* [WebDriver][Appium] Added `scrollIntoView` by **[pablopaul](https://github.com/pablopaul)**
|
|
211
|
-
* Fixed [#2118](https://github.com/
|
|
212
|
-
* Added `parse()` method to data table inside Cucumber tests. Use it to obtain rows and hashes for test data. See [#2082](https://github.com/
|
|
238
|
+
* Fixed [#2118](https://github.com/codeceptjs/CodeceptJS/issues/2118): No error stack trace for syntax error by **[senthillkumar](https://github.com/senthillkumar)**
|
|
239
|
+
* Added `parse()` method to data table inside Cucumber tests. Use it to obtain rows and hashes for test data. See [#2082](https://github.com/codeceptjs/CodeceptJS/issues/2082) by **[Sraime](https://github.com/Sraime)**
|
|
213
240
|
|
|
214
241
|
## 2.3.6
|
|
215
242
|
|
|
@@ -228,8 +255,8 @@ exports.config = {
|
|
|
228
255
|
* **[TestCafe]** Added support for remote connection. By **[jvdieten](https://github.com/jvdieten)**
|
|
229
256
|
* **[Puppeteer]** Fixed `waitForText` XPath context now works correctly. By **[Heavik](https://github.com/Heavik)**
|
|
230
257
|
* **[TestCafe]** Fixed `clearField` clear field now awaits TestCafe's promise. By **[orihomie](https://github.com/orihomie)**
|
|
231
|
-
* **[Puppeteer]** Fixed fails when executing localStorage on services pages. See [#2026](https://github.com/
|
|
232
|
-
* Fixed empty tags in test name. See [#2038](https://github.com/
|
|
258
|
+
* **[Puppeteer]** Fixed fails when executing localStorage on services pages. See [#2026](https://github.com/codeceptjs/CodeceptJS/issues/2026)
|
|
259
|
+
* Fixed empty tags in test name. See [#2038](https://github.com/codeceptjs/CodeceptJS/issues/2038)
|
|
233
260
|
|
|
234
261
|
## 2.3.5
|
|
235
262
|
|
|
@@ -238,7 +265,7 @@ exports.config = {
|
|
|
238
265
|
## 2.3.4
|
|
239
266
|
|
|
240
267
|
* Fixed installation error "Cannot find module '@babel/runtime/helpers/interopRequireDefault'". The issue came from `parse-function` package. Fixed by **[pablopaul](https://github.com/pablopaul)**.
|
|
241
|
-
* **[Puppeteer]** Fixed switching to iframe without an ID by **[johnyb](https://github.com/johnyb)**. See [#1974](https://github.com/
|
|
268
|
+
* **[Puppeteer]** Fixed switching to iframe without an ID by **[johnyb](https://github.com/johnyb)**. See [#1974](https://github.com/codeceptjs/CodeceptJS/issues/1974)
|
|
242
269
|
* Added `--profile` option to `run-workers` by **[orihomie](https://github.com/orihomie)**
|
|
243
270
|
* Added a tag definition to `FeatureConfig` and `ScenarioConfig` by **[sseliverstov](https://github.com/sseliverstov)**
|
|
244
271
|
|
|
@@ -257,36 +284,36 @@ I.click('$register_button');
|
|
|
257
284
|
Changed pressKey method to resolve issues and extend functionality.
|
|
258
285
|
* Did not properly recognize 'Meta' (or 'Command') as modifier key.
|
|
259
286
|
* Right modifier keys did not work in WebDriver using JsonWireProtocol.
|
|
260
|
-
* 'Shift' +
|
|
287
|
+
* 'Shift' + 'key' combination would not reflect actual keyboard behavior.
|
|
261
288
|
* Respect sequence with multiple modifier keys passed to pressKey.
|
|
262
289
|
* Added support to automatic change operation modifier key based on operating system.
|
|
263
290
|
* [Puppeteer][WebDriver] Added `pressKeyUp` and `pressKeyDown` to press and release modifier keys like `Control` or `Shift`. By **[martomo](https://github.com/martomo)**.
|
|
264
291
|
* [Puppeteer][WebDriver] Added `grabElementBoundingRect` by **[PeterNgTr](https://github.com/PeterNgTr)**.
|
|
265
|
-
* **[Puppeteer]** Fixed speed degradation introduced in [#1306](https://github.com/
|
|
292
|
+
* **[Puppeteer]** Fixed speed degradation introduced in [#1306](https://github.com/codeceptjs/CodeceptJS/issues/1306) with accessibility locators support. See [#1953](https://github.com/codeceptjs/CodeceptJS/issues/1953).
|
|
266
293
|
* Added `Config.addHook` to add a function that will update configuration on load.
|
|
267
294
|
* Started [`@codeceptjs/configure`](https://github.com/codecept-js/configure) package with a collection of common configuration patterns.
|
|
268
|
-
* **[TestCafe]** port's management removed (left on TestCafe itself) by **[orihomie](https://github.com/orihomie)**. Fixes [#1934](https://github.com/
|
|
269
|
-
* **[REST]** Headers are no more declared as singleton variable. Fixes [#1959](https://github.com/
|
|
295
|
+
* **[TestCafe]** port's management removed (left on TestCafe itself) by **[orihomie](https://github.com/orihomie)**. Fixes [#1934](https://github.com/codeceptjs/CodeceptJS/issues/1934).
|
|
296
|
+
* **[REST]** Headers are no more declared as singleton variable. Fixes [#1959](https://github.com/codeceptjs/CodeceptJS/issues/1959)
|
|
270
297
|
* Updated Docker image to include run tests in workers with `NUMBER_OF_WORKERS` env variable. By **[PeterNgTr](https://github.com/PeterNgTr)**.
|
|
271
298
|
|
|
272
299
|
## 2.3.2
|
|
273
300
|
|
|
274
301
|
* **[Puppeteer]** Fixed Puppeteer 1.20 support by **[davertmik](https://github.com/davertmik)**
|
|
275
|
-
* Fixed `run-workers` to run with complex configs. See [#1887](https://github.com/
|
|
302
|
+
* Fixed `run-workers` to run with complex configs. See [#1887](https://github.com/codeceptjs/CodeceptJS/issues/1887) by **[nitschSB](https://github.com/nitschSB)**
|
|
276
303
|
* Added `--suites` option to `run-workers` to split suites by workers (tests of the same suite goes to teh same worker). Thanks **[nitschSB](https://github.com/nitschSB)**.
|
|
277
304
|
* Added a guide on [Email Testing](https://codecept.io/email).
|
|
278
305
|
* **[retryFailedStepPlugin]** Improved to ignore wait* steps and others. Also added option to ignore this plugin per test bases. See [updated documentation](https://codecept.io/plugins#retryfailedstep). By **[davertmik](https://github.com/davertmik)**
|
|
279
|
-
* Fixed using PageObjects as classes by **[Vorobeyko](https://github.com/Vorobeyko)**. See [#1896](https://github.com/
|
|
280
|
-
* **[WebDriver]** Fixed opening more than one tab. See [#1875](https://github.com/
|
|
281
|
-
* Fixed [#1891](https://github.com/
|
|
306
|
+
* Fixed using PageObjects as classes by **[Vorobeyko](https://github.com/Vorobeyko)**. See [#1896](https://github.com/codeceptjs/CodeceptJS/issues/1896)
|
|
307
|
+
* **[WebDriver]** Fixed opening more than one tab. See [#1875](https://github.com/codeceptjs/CodeceptJS/issues/1875) by **[jplegoff](https://github.com/jplegoff)**. Fixes [#1874](https://github.com/codeceptjs/CodeceptJS/issues/1874)
|
|
308
|
+
* Fixed [#1891](https://github.com/codeceptjs/CodeceptJS/issues/1891) when `I.retry()` affected retries of next steps. By **[davertmik](https://github.com/davertmik)**
|
|
282
309
|
|
|
283
310
|
## 2.3.1
|
|
284
311
|
|
|
285
312
|
* **[MockRequest]** Polly helper was renamed to MockRequest.
|
|
286
313
|
* [MockRequest][WebDriver] [Mocking requests](https://codecept.io/webdriver#mocking-requests) is now available in WebDriver. Thanks **[radhey1851](https://github.com/radhey1851)**
|
|
287
|
-
* **[Puppeteer]** Ensure configured user agent and/or window size is applied to all pages. See [#1862](https://github.com/
|
|
288
|
-
* Improve handling of xpath locators with round brackets by **[nitschSB](https://github.com/nitschSB)**. See [#1870](https://github.com/
|
|
289
|
-
* Use WebDriver capabilities config in wdio plugin. [#1869](https://github.com/
|
|
314
|
+
* **[Puppeteer]** Ensure configured user agent and/or window size is applied to all pages. See [#1862](https://github.com/codeceptjs/CodeceptJS/issues/1862) by **[martomo](https://github.com/martomo)**
|
|
315
|
+
* Improve handling of xpath locators with round brackets by **[nitschSB](https://github.com/nitschSB)**. See [#1870](https://github.com/codeceptjs/CodeceptJS/issues/1870)
|
|
316
|
+
* Use WebDriver capabilities config in wdio plugin. [#1869](https://github.com/codeceptjs/CodeceptJS/issues/1869) by **[quekshuy](https://github.com/quekshuy)**
|
|
290
317
|
|
|
291
318
|
## 2.3.0
|
|
292
319
|
|
|
@@ -300,25 +327,25 @@ npx codeceptjs run-workers 3
|
|
|
300
327
|
* [GraphQL][GraphQLDataFactory] **Helpers for data management over GraphQL** APIs added. By **[radhey1851](https://github.com/radhey1851)**.
|
|
301
328
|
* Learn how to [use GraphQL helper](https://codecept.io/data#graphql) to access GarphQL API
|
|
302
329
|
* And how to combine it with [GraphQLDataFactory](https://codecept.io/data#graphql-data-factory) to generate and persist test data.
|
|
303
|
-
* **Updated to use Mocha 6**. See [#1802](https://github.com/
|
|
304
|
-
* Added `dry-run` command to print steps of test scenarios without running them. Fails to execute scenarios with `grab*` methods or custom code. See [#1825](https://github.com/
|
|
330
|
+
* **Updated to use Mocha 6**. See [#1802](https://github.com/codeceptjs/CodeceptJS/issues/1802) by **[elukoyanov](https://github.com/elukoyanov)**
|
|
331
|
+
* Added `dry-run` command to print steps of test scenarios without running them. Fails to execute scenarios with `grab*` methods or custom code. See [#1825](https://github.com/codeceptjs/CodeceptJS/issues/1825) for more details.
|
|
305
332
|
|
|
306
333
|
```
|
|
307
334
|
npx codeceptjs dry-run
|
|
308
335
|
```
|
|
309
336
|
|
|
310
|
-
* **[Appium]** Optimization when clicking, searching for fields by accessibility id. See [#1777](https://github.com/
|
|
337
|
+
* **[Appium]** Optimization when clicking, searching for fields by accessibility id. See [#1777](https://github.com/codeceptjs/CodeceptJS/issues/1777) by **[gagandeepsingh26](https://github.com/gagandeepsingh26)**
|
|
311
338
|
* **[TestCafe]** Fixed `switchTo` by **[KadoBOT](https://github.com/KadoBOT)**
|
|
312
339
|
* **[WebDriver]** Added geolocation actions by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
313
340
|
* `grabGeoLocation()`
|
|
314
341
|
* `setGeoLocation()`
|
|
315
|
-
* **[Polly]** Check typeof arguments for mock requests by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1815](https://github.com/
|
|
342
|
+
* **[Polly]** Check typeof arguments for mock requests by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1815](https://github.com/codeceptjs/CodeceptJS/issues/1815)
|
|
316
343
|
* CLI improvements by **[jamesgeorge007](https://github.com/jamesgeorge007)**
|
|
317
344
|
* `codeceptjs` command prints list of all available commands
|
|
318
345
|
* added `codeceptjs -V` flag to print version information
|
|
319
346
|
* warns on unknown command
|
|
320
347
|
* Added TypeScript files support to `run-multiple` by **[z4o4z](https://github.com/z4o4z)**
|
|
321
|
-
* Fixed element position bug in locator builder. See [#1829](https://github.com/
|
|
348
|
+
* Fixed element position bug in locator builder. See [#1829](https://github.com/codeceptjs/CodeceptJS/issues/1829) by **[AnotherAnkor](https://github.com/AnotherAnkor)**
|
|
322
349
|
* Various TypeScript typings updates by **[elukoyanov](https://github.com/elukoyanov)** and **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
323
350
|
* Added `event.step.comment` event for all comment steps like `I.say` or gherking steps.
|
|
324
351
|
|
|
@@ -335,21 +362,21 @@ npx codeceptjs dry-run
|
|
|
335
362
|
* `scrollTo`
|
|
336
363
|
* `switchTo`
|
|
337
364
|
* Intellisense improvements. Renamed `tsconfig.json` to `jsconfig.json` on init. Fixed autocompletion for Visual Studio Code.
|
|
338
|
-
* **[Polly]** Take configuration values from Puppeteer. Fix [#1766](https://github.com/
|
|
339
|
-
* **[Polly]** Add preconditions to check for puppeteer page availability by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1767](https://github.com/
|
|
340
|
-
* **[WebDriver]** Use filename for `uploadFile` by **[VikalpP](https://github.com/VikalpP)**. See [#1797](https://github.com/
|
|
365
|
+
* **[Polly]** Take configuration values from Puppeteer. Fix [#1766](https://github.com/codeceptjs/CodeceptJS/issues/1766) by **[VikalpP](https://github.com/VikalpP)**
|
|
366
|
+
* **[Polly]** Add preconditions to check for puppeteer page availability by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1767](https://github.com/codeceptjs/CodeceptJS/issues/1767)
|
|
367
|
+
* **[WebDriver]** Use filename for `uploadFile` by **[VikalpP](https://github.com/VikalpP)**. See [#1797](https://github.com/codeceptjs/CodeceptJS/issues/1797)
|
|
341
368
|
* **[Puppeteer]** Configure speed of input with `pressKeyDelay` option. By **[hubidu](https://github.com/hubidu)**
|
|
342
369
|
* Fixed recursive loading of support objects by **[davertmik](https://github.com/davertmik)**.
|
|
343
|
-
* Fixed support object definitions in steps.d.ts by **[johnyb](https://github.com/johnyb)**. Fixes [#1795](https://github.com/
|
|
370
|
+
* Fixed support object definitions in steps.d.ts by **[johnyb](https://github.com/johnyb)**. Fixes [#1795](https://github.com/codeceptjs/CodeceptJS/issues/1795)
|
|
344
371
|
* Fixed `Data().Scenario().injectDependencies()` is not a function by **[andrerleao](https://github.com/andrerleao)**
|
|
345
|
-
* Fixed crash when using xScenario & Scenario.skip with tag by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1751](https://github.com/
|
|
346
|
-
* Dynamic configuration of helpers can be performed with async function. See [#1786](https://github.com/
|
|
372
|
+
* Fixed crash when using xScenario & Scenario.skip with tag by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1751](https://github.com/codeceptjs/CodeceptJS/issues/1751)
|
|
373
|
+
* Dynamic configuration of helpers can be performed with async function. See [#1786](https://github.com/codeceptjs/CodeceptJS/issues/1786) by **[cviejo](https://github.com/cviejo)**
|
|
347
374
|
* Added TS definitions for internal objects by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
348
375
|
* BDD improvements:
|
|
349
376
|
* Fix for snippets command with a .feature file that has special characters by **[asselin](https://github.com/asselin)**
|
|
350
|
-
* Fix `--path` option on `gherkin:snippets` command by **[asselin](https://github.com/asselin)**. See [#1790](https://github.com/
|
|
351
|
-
* Added `--feature` option to `gherkin:snippets` to enable creating snippets for a subset of .feature files. See [#1803](https://github.com/
|
|
352
|
-
* Fixed: dynamic configs not reset after test. Fixes [#1776](https://github.com/
|
|
377
|
+
* Fix `--path` option on `gherkin:snippets` command by **[asselin](https://github.com/asselin)**. See [#1790](https://github.com/codeceptjs/CodeceptJS/issues/1790)
|
|
378
|
+
* Added `--feature` option to `gherkin:snippets` to enable creating snippets for a subset of .feature files. See [#1803](https://github.com/codeceptjs/CodeceptJS/issues/1803) by **[asselin](https://github.com/asselin)**.
|
|
379
|
+
* Fixed: dynamic configs not reset after test. Fixes [#1776](https://github.com/codeceptjs/CodeceptJS/issues/1776) by **[cviejo](https://github.com/cviejo)**.
|
|
353
380
|
|
|
354
381
|
## 2.2.0
|
|
355
382
|
|
|
@@ -362,24 +389,24 @@ I.mockRequest('GET', '/api/users', 200);
|
|
|
362
389
|
I.mockRequest('POST', '/users', { user: { name: 'fake' }});
|
|
363
390
|
```
|
|
364
391
|
|
|
365
|
-
* **EXPERIMENTAL** **[Puppeteer]** [Firefox support](https://codecept.io/helpers/Puppeteer-firefox) introduced by **[ngadiyak](https://github.com/ngadiyak)**, see [#1740](https://github.com/
|
|
366
|
-
* **[stepByStepReportPlugin]** use md5 hash to generate reports into unique folder. Fix [#1744](https://github.com/
|
|
392
|
+
* **EXPERIMENTAL** **[Puppeteer]** [Firefox support](https://codecept.io/helpers/Puppeteer-firefox) introduced by **[ngadiyak](https://github.com/ngadiyak)**, see [#1740](https://github.com/codeceptjs/CodeceptJS/issues/1740)
|
|
393
|
+
* **[stepByStepReportPlugin]** use md5 hash to generate reports into unique folder. Fix [#1744](https://github.com/codeceptjs/CodeceptJS/issues/1744) by **[chimurai](https://github.com/chimurai)**
|
|
367
394
|
* Interactive pause improvements:
|
|
368
395
|
* print result of `grab` commands
|
|
369
396
|
* print message for successful assertions
|
|
370
397
|
* `run-multiple` (parallel execution) improvements:
|
|
371
|
-
* `bootstrapAll` must be called before creating chunks. [#1741](https://github.com/
|
|
372
|
-
* Bugfix: If value in config has falsy value then multiple config does not overwrite original value. [#1756](https://github.com/
|
|
398
|
+
* `bootstrapAll` must be called before creating chunks. [#1741](https://github.com/codeceptjs/CodeceptJS/issues/1741) by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
399
|
+
* Bugfix: If value in config has falsy value then multiple config does not overwrite original value. [#1756](https://github.com/codeceptjs/CodeceptJS/issues/1756) by **[LukoyanovE](https://github.com/LukoyanovE)**
|
|
373
400
|
* Fixed hooks broken in 2.1.5 by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
374
|
-
* Fix references to support objects when using Dependency Injection. Fix by **[johnyb](https://github.com/johnyb)**. See [#1701](https://github.com/
|
|
375
|
-
* Fix dynamic config applied for multiple helpers by **[VikalpP](https://github.com/VikalpP)** [#1743](https://github.com/
|
|
401
|
+
* Fix references to support objects when using Dependency Injection. Fix by **[johnyb](https://github.com/johnyb)**. See [#1701](https://github.com/codeceptjs/CodeceptJS/issues/1701)
|
|
402
|
+
* Fix dynamic config applied for multiple helpers by **[VikalpP](https://github.com/VikalpP)** [#1743](https://github.com/codeceptjs/CodeceptJS/issues/1743)
|
|
376
403
|
|
|
377
404
|
|
|
378
405
|
## 2.1.5
|
|
379
406
|
|
|
380
|
-
* **EXPERIMENTAL** [Wix Detox support](https://github.com/
|
|
407
|
+
* **EXPERIMENTAL** [Wix Detox support](https://github.com/codeceptjs/detox-helper) introduced as standalone helper. Provides a faster alternative to Appium for mobile testing.
|
|
381
408
|
* Saving successful commands inside interactive pause into `_output/cli-history` file. By **[hubidu](https://github.com/hubidu)**
|
|
382
|
-
* Fixed hanging error handler inside scenario. See [#1721](https://github.com/
|
|
409
|
+
* Fixed hanging error handler inside scenario. See [#1721](https://github.com/codeceptjs/CodeceptJS/issues/1721) by **[haily-lgc](https://github.com/haily-lgc)**.
|
|
383
410
|
* Fixed by **[Vorobeyko](https://github.com/Vorobeyko)**: tests did not fail when an exception was raised in async bootstrap.
|
|
384
411
|
* **[WebDriver]** Added window control methods by **[emmonspired](https://github.com/emmonspired)**
|
|
385
412
|
* `grabAllWindowHandles` returns all window handles
|
|
@@ -541,7 +568,7 @@ Use it with `FileSystem` helper to test availability of a file:
|
|
|
541
568
|
* [allure plugin] Add skipped tests to allure reports by **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
542
569
|
* Fixed `Logged Test name | [object Object]` when used Data().Scenario(). By **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
543
570
|
* Fixed Data().only.Scenario() to run for all datasets. By **[Vorobeyko](https://github.com/Vorobeyko)**
|
|
544
|
-
* **[WebDriver]** `attachFile` to work with hidden elements. Fixed in [#1460](https://github.com/
|
|
571
|
+
* **[WebDriver]** `attachFile` to work with hidden elements. Fixed in [#1460](https://github.com/codeceptjs/CodeceptJS/issues/1460) by **[tsuemura](https://github.com/tsuemura)**
|
|
545
572
|
|
|
546
573
|
|
|
547
574
|
|
|
@@ -610,7 +637,7 @@ Use it with `FileSystem` helper to test availability of a file:
|
|
|
610
637
|
* **Using `codecept.conf.js` as default configuration format**
|
|
611
638
|
* Fixed "enametoolong" error when saving screenshots for data driven tests by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
612
639
|
* Updated NodeJS to 10 in Docker image
|
|
613
|
-
* **[Pupeteer]** Add support to use WSEndpoint. Allows to execute tests remotely. [See [#1350](https://github.com/
|
|
640
|
+
* **[Pupeteer]** Add support to use WSEndpoint. Allows to execute tests remotely. [See [#1350](https://github.com/codeceptjs/CodeceptJS/issues/1350)] by **[gabrielcaires](https://github.com/gabrielcaires)** (https://github.com/codeceptjs/CodeceptJS/pull/1350)
|
|
614
641
|
* In interactive shell **[Enter]** goes to next step. Improvement by **[PeterNgTr](https://github.com/PeterNgTr)**.
|
|
615
642
|
* `I.say` accepts second parameter as color to print colorful comments. Improvement by **[PeterNgTr](https://github.com/PeterNgTr)**.
|
|
616
643
|
|
|
@@ -626,12 +653,12 @@ I.say('This is by default'); //cyan is used
|
|
|
626
653
|
|
|
627
654
|
* **[Puppeteer]** `dragSlider` action added by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
628
655
|
* **[Puppeteer]** Fixed opening browser in shell mode by **[allenhwkim](https://github.com/allenhwkim)**
|
|
629
|
-
* **[Puppeteer]** Fixed making screenshot on additional sessions by **[PeterNgTr](https://github.com/PeterNgTr)**. Fixes [#1266](https://github.com/
|
|
656
|
+
* **[Puppeteer]** Fixed making screenshot on additional sessions by **[PeterNgTr](https://github.com/PeterNgTr)**. Fixes [#1266](https://github.com/codeceptjs/CodeceptJS/issues/1266)
|
|
630
657
|
* Added `--invert` option to `run-multiple` command by **[LukoyanovE](https://github.com/LukoyanovE)**
|
|
631
658
|
* Fixed steps in Allure reports by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
632
659
|
* Add option `output` to customize output directory in [stepByStepReport plugin](https://codecept.io/plugins/#stepbystepreport). By **[fpsthirty](https://github.com/fpsthirty)**
|
|
633
660
|
* Changed type definition of PageObjects to get auto completion by **[rhicu](https://github.com/rhicu)**
|
|
634
|
-
* Fixed steps output for async/arrow functions in CLI by **[LukoyanovE](https://github.com/LukoyanovE)**. See [#1329](https://github.com/
|
|
661
|
+
* Fixed steps output for async/arrow functions in CLI by **[LukoyanovE](https://github.com/LukoyanovE)**. See [#1329](https://github.com/codeceptjs/CodeceptJS/issues/1329)
|
|
635
662
|
|
|
636
663
|
## 1.4.5
|
|
637
664
|
|
|
@@ -644,7 +671,7 @@ I.say('This is by default'); //cyan is used
|
|
|
644
671
|
```
|
|
645
672
|
|
|
646
673
|
* **[WebDriverIO]** Fix timeouts definition to be compatible with W3C drivers. By **[LukoyanovE](https://github.com/LukoyanovE)**
|
|
647
|
-
* Fixed: exception in Before block w/ Mocha causes test not to report failure. See [#1292](https://github.com/
|
|
674
|
+
* Fixed: exception in Before block w/ Mocha causes test not to report failure. See [#1292](https://github.com/codeceptjs/CodeceptJS/issues/1292) by **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
648
675
|
* Command `run-parallel` now accepts `--override` flag. Thanks to **[ClemCB](https://github.com/ClemCB)**
|
|
649
676
|
* Fixed Allure report with Before/BeforeSuite/After/AfterSuite steps. By **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
650
677
|
* Added `RUN_MULTIPLE` env variable to [Docker config](https://codecept.io/docker/). Allows to run tests in parallel inside a container. Thanks to **[PeterNgTr](https://github.com/PeterNgTr)**
|
|
@@ -675,7 +702,7 @@ Scenario('update user profile', () => {
|
|
|
675
702
|
|
|
676
703
|
* Fixed attaching Allure screenshot on exception. Fix by **[DevinWatson](https://github.com/DevinWatson)**
|
|
677
704
|
* Improved type definitions for custom steps. By **[Akxe](https://github.com/Akxe)**
|
|
678
|
-
* Fixed setting `multiple.parallel.chunks` as environment variable in config. See [#1238](https://github.com/
|
|
705
|
+
* Fixed setting `multiple.parallel.chunks` as environment variable in config. See [#1238](https://github.com/codeceptjs/CodeceptJS/issues/1238) by **[ngadiyak](https://github.com/ngadiyak)**
|
|
679
706
|
|
|
680
707
|
## 1.4.2
|
|
681
708
|
|
|
@@ -845,9 +872,9 @@ locate('//table')
|
|
|
845
872
|
|
|
846
873
|
* [Dynamic configuration](https://codecept.io/advanced/#dynamic-configuration) to update helpers config per test or per suite.
|
|
847
874
|
* Added `event.test.finished` which fires synchronously for both failed and passed tests.
|
|
848
|
-
* [WebDriverIO][Protractor][Nightmare][Puppeteer] Full page screenshots on failure disabled by default. See [issue[#1600](https://github.com/
|
|
875
|
+
* [WebDriverIO][Protractor][Nightmare][Puppeteer] Full page screenshots on failure disabled by default. See [issue[#1600](https://github.com/codeceptjs/CodeceptJS/issues/1600). You can enabled them with `fullPageScreenshots: true`, however they may work unstable in Selenium.
|
|
849
876
|
* `within` blocks can return values. See [updated documentation](https://codecept.io/basics/#within).
|
|
850
|
-
* Removed doublt call to `_init` in helpers. Fixes issue [#1036](https://github.com/
|
|
877
|
+
* Removed doublt call to `_init` in helpers. Fixes issue [#1036](https://github.com/codeceptjs/CodeceptJS/issues/1036)
|
|
851
878
|
* Added scenario and feature configuration via fluent API:
|
|
852
879
|
|
|
853
880
|
```js
|
|
@@ -1111,7 +1138,7 @@ I.dontSee('Email Address');
|
|
|
1111
1138
|
↑ This element can be located with `~foobar` in WebDriverIO and Appium helpers. Thanks to **[flyskywhy](https://github.com/flyskywhy)**
|
|
1112
1139
|
|
|
1113
1140
|
* Allow providing arbitrary objects in config includes by **[rlewan](https://github.com/rlewan)**
|
|
1114
|
-
* **[REST]** Prevent from mutating default headers by **[alexashley](https://github.com/alexashley)**. See [#789](https://github.com/
|
|
1141
|
+
* **[REST]** Prevent from mutating default headers by **[alexashley](https://github.com/alexashley)**. See [#789](https://github.com/codeceptjs/CodeceptJS/issues/789)
|
|
1115
1142
|
* **[REST]** Fixed sending empty helpers with `haveRequestHeaders` in `sendPostRequest`. By **[petrisorionel](https://github.com/petrisorionel)**
|
|
1116
1143
|
* Fixed displaying undefined args in output by **[APshenkin](https://github.com/APshenkin)**
|
|
1117
1144
|
* Fixed NaN instead of seconds in output by **[APshenkin](https://github.com/APshenkin)**
|
|
@@ -1123,7 +1150,7 @@ I.dontSee('Email Address');
|
|
|
1123
1150
|
## 1.0.3
|
|
1124
1151
|
|
|
1125
1152
|
* [WebDriverIO][Protractor][Nightmare] method `waitUntilExists` implemented by **[sabau](https://github.com/sabau)**
|
|
1126
|
-
* Absolute path can be set for `output` dir by **[APshenkin](https://github.com/APshenkin)**. Fix [#571](https://github.com/
|
|
1153
|
+
* Absolute path can be set for `output` dir by **[APshenkin](https://github.com/APshenkin)**. Fix [#571](https://github.com/codeceptjs/CodeceptJS/issues/571)* Data table rows can be ignored by using `xadd`. By **[APhenkin](https://github.com/APhenkin)**
|
|
1127
1154
|
* Added `Data(table).only.Scenario` to give ability to launch only Data tests. By **[APhenkin](https://github.com/APhenkin)**
|
|
1128
1155
|
* Implemented `ElementNotFound` error by **[BorisOsipov](https://github.com/BorisOsipov)**.
|
|
1129
1156
|
* Added TypeScript compiler / configs to check the JavaScript by **[KennyRules](https://github.com/KennyRules)**
|
|
@@ -1136,11 +1163,11 @@ I.dontSee('Email Address');
|
|
|
1136
1163
|
|
|
1137
1164
|
* Introduced generators support in scenario hooks for `BeforeSuite`/`Before`/`AfterSuite`/`After`
|
|
1138
1165
|
* **[ApiDataFactory]** Fixed loading helper; `requireg` package included.
|
|
1139
|
-
* Fix [#485](https://github.com/
|
|
1166
|
+
* Fix [#485](https://github.com/codeceptjs/CodeceptJS/issues/485)`run-multiple`: the first browser-resolution combination was be used in all configurations
|
|
1140
1167
|
* Fixed unique test names:
|
|
1141
|
-
* Fixed [#447](https://github.com/
|
|
1168
|
+
* Fixed [#447](https://github.com/codeceptjs/CodeceptJS/issues/447) tests failed silently if they have the same name as other tests.
|
|
1142
1169
|
* Use uuid in screenshot names when `uniqueScreenshotNames: true`
|
|
1143
|
-
* **[Protractor]** Fixed testing non-angular application. `amOutsideAngularApp` is executed before each step. Fixes [#458](https://github.com/
|
|
1170
|
+
* **[Protractor]** Fixed testing non-angular application. `amOutsideAngularApp` is executed before each step. Fixes [#458](https://github.com/codeceptjs/CodeceptJS/issues/458)* Added output for steps in hooks when they fail
|
|
1144
1171
|
|
|
1145
1172
|
## 1.0.1
|
|
1146
1173
|
|
|
@@ -1149,7 +1176,7 @@ I.dontSee('Email Address');
|
|
|
1149
1176
|
* Added [Mochawesome](http://codecept.io/helpers/Mochawesome/) helper
|
|
1150
1177
|
* `addMochawesomeContext` method to add custom data to mochawesome reports
|
|
1151
1178
|
* Fixed Mochawesome context for failed screenshots.
|
|
1152
|
-
* **[WebDriverIO]** improved click on context to match clickable element with a text inside. Fixes [#647](https://github.com/
|
|
1179
|
+
* **[WebDriverIO]** improved click on context to match clickable element with a text inside. Fixes [#647](https://github.com/codeceptjs/CodeceptJS/issues/647)* **[Nightmare]** Added `refresh` function by **[awhanks](https://github.com/awhanks)**
|
|
1153
1180
|
* fixed `Unhandled promise rejection (rejection id: 1): Error: Unknown wait type: pageLoad`
|
|
1154
1181
|
* support for tests with retries in html report
|
|
1155
1182
|
* be sure that change window size and timeouts completes before test
|
|
@@ -1214,16 +1241,16 @@ Next notable feature is **[SmartWait](http://codecept.io/acceptance/#smartwait)*
|
|
|
1214
1241
|
* Minimal NodeJS version is 6.11.1 LTS
|
|
1215
1242
|
* Use `within` command with generators.
|
|
1216
1243
|
* [Data Driven Tests](http://codecept.io/advanced/#data-driven-tests) introduced.
|
|
1217
|
-
* Print execution time per step in `--debug` mode. [#591](https://github.com/
|
|
1244
|
+
* Print execution time per step in `--debug` mode. [#591](https://github.com/codeceptjs/CodeceptJS/issues/591) by **[APshenkin](https://github.com/APshenkin)**
|
|
1218
1245
|
* [WebDriverIO][Protractor][Nightmare] Added `disableScreenshots` option to disable screenshots on fail by **[Apshenkin](https://github.com/Apshenkin)**
|
|
1219
1246
|
* [WebDriverIO][Protractor][Nightmare] Added `uniqueScreenshotNames` option to generate unique names for screenshots on failure by **[Apshenkin](https://github.com/Apshenkin)**
|
|
1220
1247
|
* [WebDriverIO][Nightmare] Fixed click on context; `click('text', '#el')` will throw exception if text is not found inside `#el`.
|
|
1221
1248
|
* [WebDriverIO][Protractor][SeleniumWebdriver] [SmartWait introduced](http://codecept.io/acceptance/#smartwait).
|
|
1222
|
-
* [WebDriverIO][Protractor][Nightmare]Fixed `saveScreenshot` for PhantomJS, `fullPageScreenshots` option introduced by **[HughZurname](https://github.com/HughZurname)** [#549](https://github.com/
|
|
1249
|
+
* [WebDriverIO][Protractor][Nightmare]Fixed `saveScreenshot` for PhantomJS, `fullPageScreenshots` option introduced by **[HughZurname](https://github.com/HughZurname)** [#549](https://github.com/codeceptjs/CodeceptJS/issues/549)
|
|
1223
1250
|
* **[Appium]** helper introduced by **[APshenkin](https://github.com/APshenkin)**
|
|
1224
|
-
* **[REST]** helper introduced by **[atrevino](https://github.com/atrevino)** in [#504](https://github.com/
|
|
1225
|
-
* [WebDriverIO][SeleniumWebdriver] Fixed "windowSize": "maximize" for Chrome 59+ version [#560](https://github.com/
|
|
1226
|
-
* **[Nightmare]** Fixed restarting by **[APshenkin](https://github.com/APshenkin)** [#581](https://github.com/
|
|
1251
|
+
* **[REST]** helper introduced by **[atrevino](https://github.com/atrevino)** in [#504](https://github.com/codeceptjs/CodeceptJS/issues/504)
|
|
1252
|
+
* [WebDriverIO][SeleniumWebdriver] Fixed "windowSize": "maximize" for Chrome 59+ version [#560](https://github.com/codeceptjs/CodeceptJS/issues/560) by **[APshenkin](https://github.com/APshenkin)**
|
|
1253
|
+
* **[Nightmare]** Fixed restarting by **[APshenkin](https://github.com/APshenkin)** [#581](https://github.com/codeceptjs/CodeceptJS/issues/581)
|
|
1227
1254
|
* **[WebDriverIO]** Methods added by **[APshenkin](https://github.com/APshenkin)**:
|
|
1228
1255
|
* [grabCssPropertyFrom](http://codecept.io/helpers/WebDriverIO/#grabcsspropertyfrom)
|
|
1229
1256
|
* [seeTitleEquals](http://codecept.io/helpers/WebDriverIO/#seetitleequals)
|
|
@@ -1243,10 +1270,10 @@ Next notable feature is **[SmartWait](http://codecept.io/acceptance/#smartwait)*
|
|
|
1243
1270
|
* [scrollPageToBottom](http://codecept.io/helpers/WebDriverIO/#scrollpagetobottom)
|
|
1244
1271
|
* [scrollPageToTop](http://codecept.io/helpers/WebDriverIO/#scrollpagetotop)
|
|
1245
1272
|
* [grabBrowserLogs](http://codecept.io/helpers/WebDriverIO/#grabbrowserlogs)
|
|
1246
|
-
* Use mkdirp to create output directory. [#592](https://github.com/
|
|
1247
|
-
* **[WebDriverIO]** Fixed `seeNumberOfVisibleElements` by **[BorisOsipov](https://github.com/BorisOsipov)** [#574](https://github.com/
|
|
1248
|
-
* Lots of fixes for promise chain by **[APshenkin](https://github.com/APshenkin)** [#568](https://github.com/
|
|
1249
|
-
* Fix [#543](https://github.com/
|
|
1273
|
+
* Use mkdirp to create output directory. [#592](https://github.com/codeceptjs/CodeceptJS/issues/592) by **[vkramskikh](https://github.com/vkramskikh)**
|
|
1274
|
+
* **[WebDriverIO]** Fixed `seeNumberOfVisibleElements` by **[BorisOsipov](https://github.com/BorisOsipov)** [#574](https://github.com/codeceptjs/CodeceptJS/issues/574)
|
|
1275
|
+
* Lots of fixes for promise chain by **[APshenkin](https://github.com/APshenkin)** [#568](https://github.com/codeceptjs/CodeceptJS/issues/568)
|
|
1276
|
+
* Fix [#543](https://github.com/codeceptjs/CodeceptJS/issues/543)- After block not properly executed if Scenario fails
|
|
1250
1277
|
* Expected behavior in promise chains: `_beforeSuite` hooks from helpers -> `BeforeSuite` from test -> `_before` hooks from helpers -> `Before` from test - > Test steps -> `_failed` hooks from helpers (if test failed) -> `After` from test -> `_after` hooks from helpers -> `AfterSuite` from test -> `_afterSuite` hook from helpers.
|
|
1251
1278
|
* if during test we got errors from any hook (in test or in helper) - stop complete this suite and go to another
|
|
1252
1279
|
* if during test we got error from Selenium server - stop complete this suite and go to another
|
|
@@ -1254,7 +1281,7 @@ Next notable feature is **[SmartWait](http://codecept.io/acceptance/#smartwait)*
|
|
|
1254
1281
|
* Complete `_after`, `_afterSuite` hooks even After/AfterSuite from test was failed
|
|
1255
1282
|
* Don't close browser between suites, when `restart` option is false. We should start browser only one time and close it only after all tests.
|
|
1256
1283
|
* Close tabs and clear local storage, if `keepCookies` flag is enabled
|
|
1257
|
-
* Fix TypeError when using babel-node or ts-node on node.js 7+ [#586](https://github.com/
|
|
1284
|
+
* Fix TypeError when using babel-node or ts-node on node.js 7+ [#586](https://github.com/codeceptjs/CodeceptJS/issues/586) by **[vkramskikh](https://github.com/vkramskikh)**
|
|
1258
1285
|
* **[Nightmare]** fixed usage of `_locate`
|
|
1259
1286
|
|
|
1260
1287
|
Special thanks to **Andrey Pshenkin** for his work on this release and the major improvements.
|
|
@@ -1270,9 +1297,9 @@ Scenario('My scenario', { build_id: 123, type: 'slow' }, function (I)
|
|
|
1270
1297
|
those options can be accessed as `opts` property inside a `test` object. Can be used in custom listeners.
|
|
1271
1298
|
|
|
1272
1299
|
* Added `docs` directory to a package.
|
|
1273
|
-
* [WebDriverIO][Protractor][SeleniumWebdriver] Bugfix: cleaning session when `restart: false` by **[tfiwm](https://github.com/tfiwm)** [#519](https://github.com/
|
|
1300
|
+
* [WebDriverIO][Protractor][SeleniumWebdriver] Bugfix: cleaning session when `restart: false` by **[tfiwm](https://github.com/tfiwm)** [#519](https://github.com/codeceptjs/CodeceptJS/issues/519)
|
|
1274
1301
|
* [WebDriverIO][Protractor][Nightmare] Added second parameter to `saveScreenshot` to allow a full page screenshot. By **[HughZurname](https://github.com/HughZurname)**
|
|
1275
|
-
* Added suite object to `suite.before` and `suite.after` events by **[implico](https://github.com/implico)**. [#496](https://github.com/
|
|
1302
|
+
* Added suite object to `suite.before` and `suite.after` events by **[implico](https://github.com/implico)**. [#496](https://github.com/codeceptjs/CodeceptJS/issues/496)
|
|
1276
1303
|
|
|
1277
1304
|
## 0.6.2
|
|
1278
1305
|
|
|
@@ -1341,8 +1368,8 @@ codeceptjs run users_test.js -c tests
|
|
|
1341
1368
|
## 0.5.0
|
|
1342
1369
|
|
|
1343
1370
|
* Protractor ^5.0.0 support (while keeping ^4.0.9 compatibility)
|
|
1344
|
-
* Fix 'fullTitle() is not a function' in exit.js by **[hubidu](https://github.com/hubidu)**. See [#388](https://github.com/
|
|
1345
|
-
* **[Nightmare]** Fix for `waitTimeout` by **[HughZurname](https://github.com/HughZurname)**. See [#391](https://github.com/
|
|
1371
|
+
* Fix 'fullTitle() is not a function' in exit.js by **[hubidu](https://github.com/hubidu)**. See [#388](https://github.com/codeceptjs/CodeceptJS/issues/388).
|
|
1372
|
+
* **[Nightmare]** Fix for `waitTimeout` by **[HughZurname](https://github.com/HughZurname)**. See [#391](https://github.com/codeceptjs/CodeceptJS/issues/391). Resolves [#236](https://github.com/codeceptjs/CodeceptJS/issues/236)* Dockerized CodeceptJS setup by **[artiomnist](https://github.com/artiomnist)**. [See reference](https://github.com/codeceptjs/CodeceptJS/blob/master/docker/README.md)
|
|
1346
1373
|
|
|
1347
1374
|
## 0.4.16
|
|
1348
1375
|
|
|
@@ -1424,7 +1451,7 @@ Scenario('Not that complex', {timeout: 1000}, (I) => {
|
|
|
1424
1451
|
});
|
|
1425
1452
|
```
|
|
1426
1453
|
|
|
1427
|
-
* **[WebDriverIO]** Added `uniqueScreenshotNames` option to set unique screenshot names for failed tests. By **[APshenkin](https://github.com/APshenkin)**. See [#299](https://github.com/
|
|
1454
|
+
* **[WebDriverIO]** Added `uniqueScreenshotNames` option to set unique screenshot names for failed tests. By **[APshenkin](https://github.com/APshenkin)**. See [#299](https://github.com/codeceptjs/CodeceptJS/issues/299)
|
|
1428
1455
|
* **[WebDriverIO]** `clearField` method improved to accept name/label locators and throw errors.
|
|
1429
1456
|
* [Nightmare][SeleniumWebdriver][Protractor] `clearField` method added.
|
|
1430
1457
|
* **[Nightmare]** Fixed `waitForElement`, and `waitForVisible` methods.
|
|
@@ -1441,12 +1468,12 @@ codeceptjs run -o '{ "bootstrap": "bootstrap.js"}'
|
|
|
1441
1468
|
codeceptjs run -o '{ "helpers": {"WebDriverIO": {"browser": "chrome"}}}'
|
|
1442
1469
|
```
|
|
1443
1470
|
|
|
1444
|
-
* Added [regression tests](https://github.com/
|
|
1471
|
+
* Added [regression tests](https://github.com/codeceptjs/CodeceptJS/tree/master/test/runner) for codeceptjs tests runner.
|
|
1445
1472
|
|
|
1446
1473
|
## 0.4.11
|
|
1447
1474
|
|
|
1448
1475
|
* Fixed regression in 0.4.10
|
|
1449
|
-
* Added `bootstrap`/`teardown` config options to accept functions as parameters by **[pscanf](https://github.com/pscanf)**. See updated [config reference](http://codecept.io/configuration/) [#319](https://github.com/
|
|
1476
|
+
* Added `bootstrap`/`teardown` config options to accept functions as parameters by **[pscanf](https://github.com/pscanf)**. See updated [config reference](http://codecept.io/configuration/) [#319](https://github.com/codeceptjs/CodeceptJS/issues/319)
|
|
1450
1477
|
|
|
1451
1478
|
## 0.4.10
|
|
1452
1479
|
|
|
@@ -1461,26 +1488,26 @@ module.exports = function(done) {
|
|
|
1461
1488
|
}
|
|
1462
1489
|
```
|
|
1463
1490
|
|
|
1464
|
-
* Changed 'pending' to 'skipped' in reports by **[timja-kainos](https://github.com/timja-kainos)**. See [#315](https://github.com/
|
|
1491
|
+
* Changed 'pending' to 'skipped' in reports by **[timja-kainos](https://github.com/timja-kainos)**. See [#315](https://github.com/codeceptjs/CodeceptJS/issues/315)
|
|
1465
1492
|
|
|
1466
1493
|
## 0.4.9
|
|
1467
1494
|
|
|
1468
1495
|
* [SeleniumWebdriver][Protractor][WebDriverIO][Nightmare] fixed `executeScript`, `executeAsyncScript` to work and return values.
|
|
1469
1496
|
* [Protractor][SeleniumWebdriver][WebDriverIO] Added `waitForInvisible` and `waitForStalenessOf` methods by **[Nighthawk14](https://github.com/Nighthawk14)**.
|
|
1470
1497
|
* Added `--config` option to `codeceptjs run` to manually specify config file by **[cnworks](https://github.com/cnworks)**
|
|
1471
|
-
* **[Protractor]** Simplified behavior of `amOutsideAngularApp` by using `ignoreSynchronization`. Fixes [#278](https://github.com/
|
|
1472
|
-
* Set exit code to 1 when test fails at `Before`/`After` hooks. Fixes [#279](https://github.com/
|
|
1498
|
+
* **[Protractor]** Simplified behavior of `amOutsideAngularApp` by using `ignoreSynchronization`. Fixes [#278](https://github.com/codeceptjs/CodeceptJS/issues/278)
|
|
1499
|
+
* Set exit code to 1 when test fails at `Before`/`After` hooks. Fixes [#279](https://github.com/codeceptjs/CodeceptJS/issues/279)
|
|
1473
1500
|
|
|
1474
1501
|
|
|
1475
1502
|
## 0.4.8
|
|
1476
1503
|
|
|
1477
1504
|
* [Protractor][SeleniumWebdriver][Nightmare] added `moveCursorTo` method.
|
|
1478
|
-
* [Protractor][SeleniumWebdriver][WebDriverIO] Added `manualStart` option to start browser manually in the beginning of test. By **[cnworks](https://github.com/cnworks)**. [PR[#250](https://github.com/
|
|
1505
|
+
* [Protractor][SeleniumWebdriver][WebDriverIO] Added `manualStart` option to start browser manually in the beginning of test. By **[cnworks](https://github.com/cnworks)**. [PR[#250](https://github.com/codeceptjs/CodeceptJS/issues/250)
|
|
1479
1506
|
* Fixed `codeceptjs init` to work with nested directories and file masks.
|
|
1480
1507
|
* Fixed `codeceptjs gt` to generate test with proper file name suffix. By **[Zougi](https://github.com/Zougi)**.
|
|
1481
1508
|
* **[Nightmare]** Fixed: Error is thrown when clicking on element which can't be locate. By **[davetmik](https://github.com/davetmik)**
|
|
1482
1509
|
* **[WebDriverIO]** Fixed `attachFile` for file upload. By **[giuband](https://github.com/giuband)** and **[davetmik](https://github.com/davetmik)**
|
|
1483
|
-
* **[WebDriverIO]** Add support for timeouts in config and with `defineTimeouts` method. By **[easternbloc](https://github.com/easternbloc)** [#258](https://github.com/
|
|
1510
|
+
* **[WebDriverIO]** Add support for timeouts in config and with `defineTimeouts` method. By **[easternbloc](https://github.com/easternbloc)** [#258](https://github.com/codeceptjs/CodeceptJS/issues/258) and [#267](https://github.com/codeceptjs/CodeceptJS/issues/267) by **[davetmik](https://github.com/davetmik)**
|
|
1484
1511
|
* Fixed hanging of CodeceptJS when error is thrown by event dispatcher. Fix by **[Zougi](https://github.com/Zougi)** and **[davetmik](https://github.com/davetmik)**
|
|
1485
1512
|
|
|
1486
1513
|
|
|
@@ -1497,7 +1524,7 @@ module.exports = function(done) {
|
|
|
1497
1524
|
## 0.4.5
|
|
1498
1525
|
|
|
1499
1526
|
* Fixed running `codecept def` command by **[jankaspar](https://github.com/jankaspar)**
|
|
1500
|
-
* [Protractor][SeleniumWebdriver] Added support for special keys in `pressKey` method. Fixes [#216](https://github.com/
|
|
1527
|
+
* [Protractor][SeleniumWebdriver] Added support for special keys in `pressKey` method. Fixes [#216](https://github.com/codeceptjs/CodeceptJS/issues/216)
|
|
1501
1528
|
|
|
1502
1529
|
## 0.4.4
|
|
1503
1530
|
|
|
@@ -1524,7 +1551,7 @@ exports.config = {
|
|
|
1524
1551
|
|
|
1525
1552
|
## 0.4.2
|
|
1526
1553
|
|
|
1527
|
-
* Added ability to localize tests with translation [#189](https://github.com/
|
|
1554
|
+
* Added ability to localize tests with translation [#189](https://github.com/codeceptjs/CodeceptJS/issues/189). Thanks to **[abner](https://github.com/abner)**
|
|
1528
1555
|
* **[Translation]** ru-RU translation added.
|
|
1529
1556
|
* **[Translation]** pt-BR translation added.
|
|
1530
1557
|
* **[Protractor]** Protractor 4.0.4 compatibility.
|
|
@@ -1535,8 +1562,8 @@ exports.config = {
|
|
|
1535
1562
|
|
|
1536
1563
|
## 0.4.1
|
|
1537
1564
|
|
|
1538
|
-
* Added custom steps to step definition list. See [#174](https://github.com/
|
|
1539
|
-
* **[WebDriverIO]** Fixed using `waitForTimeout` option by **[stephane-ruhlmann](https://github.com/stephane-ruhlmann)**. See [#178](https://github.com/
|
|
1565
|
+
* Added custom steps to step definition list. See [#174](https://github.com/codeceptjs/CodeceptJS/issues/174) by **[jayS-de](https://github.com/jayS-de)**
|
|
1566
|
+
* **[WebDriverIO]** Fixed using `waitForTimeout` option by **[stephane-ruhlmann](https://github.com/stephane-ruhlmann)**. See [#178](https://github.com/codeceptjs/CodeceptJS/issues/178)
|
|
1540
1567
|
|
|
1541
1568
|
## 0.4.0
|
|
1542
1569
|
|
|
@@ -1576,7 +1603,7 @@ Depending on installation type additional modules (webdriverio, protractor, ...)
|
|
|
1576
1603
|
* [Protractor][SeleniumWebdriver] fixed closing browser instances
|
|
1577
1604
|
* [Protractor][SeleniumWebdriver] `doubleClick` method added
|
|
1578
1605
|
* [WebDriverIO][Protractor][SeleniumWebdriver] `doubleClick` method to locate clickable elements by text, `context` option added.
|
|
1579
|
-
* Fixed using assert in generator without yields [#89](https://github.com/
|
|
1606
|
+
* Fixed using assert in generator without yields [#89](https://github.com/codeceptjs/CodeceptJS/issues/89)
|
|
1580
1607
|
|
|
1581
1608
|
## 0.3.1
|
|
1582
1609
|
|
|
@@ -1596,8 +1623,8 @@ Starting from 0.3.0 webdriverio is not the only backend for running selenium tes
|
|
|
1596
1623
|
* **[WebDriverIO]** fixed `windowSize: maximize` option in config
|
|
1597
1624
|
* **[WebDriverIO]** `seeElement` and `dontSeeElement` check element for visibility by **[fabioel](https://github.com/fabioel)** and **[davertmik](https://github.com/davertmik)**
|
|
1598
1625
|
* **[WebDriverIO]** `seeElementInDOM`, `dontSeeElementInDOM` added to check element exists on page.
|
|
1599
|
-
* **[WebDriverIO]** fixed saving screenshots on failure. Fixes [#70](https://github.com/
|
|
1600
|
-
* fixed `within` block doesn't end in output not [#79](https://github.com/
|
|
1626
|
+
* **[WebDriverIO]** fixed saving screenshots on failure. Fixes [#70](https://github.com/codeceptjs/CodeceptJS/issues/70)
|
|
1627
|
+
* fixed `within` block doesn't end in output not [#79](https://github.com/codeceptjs/CodeceptJS/issues/79)
|
|
1601
1628
|
|
|
1602
1629
|
|
|
1603
1630
|
## 0.2.8
|
|
@@ -1606,20 +1633,20 @@ Starting from 0.3.0 webdriverio is not the only backend for running selenium tes
|
|
|
1606
1633
|
|
|
1607
1634
|
## 0.2.7
|
|
1608
1635
|
|
|
1609
|
-
* process ends with exit code 1 on error or failure [#49](https://github.com/
|
|
1610
|
-
* fixed registereing global Helper [#57](https://github.com/
|
|
1611
|
-
* fixed handling error in within block [#50](https://github.com/
|
|
1636
|
+
* process ends with exit code 1 on error or failure [#49](https://github.com/codeceptjs/CodeceptJS/issues/49)
|
|
1637
|
+
* fixed registereing global Helper [#57](https://github.com/codeceptjs/CodeceptJS/issues/57)
|
|
1638
|
+
* fixed handling error in within block [#50](https://github.com/codeceptjs/CodeceptJS/issues/50)
|
|
1612
1639
|
|
|
1613
1640
|
## 0.2.6
|
|
1614
1641
|
|
|
1615
1642
|
* Fixed `done() was called multiple times`
|
|
1616
1643
|
* **[WebDriverIO]** added `waitToHide` method by **[fabioel](https://github.com/fabioel)**
|
|
1617
|
-
* Added global `Helper` (alias `codecept_helper)`, object use for writing custom Helpers. Generator updated. Changes to [#48](https://github.com/
|
|
1644
|
+
* Added global `Helper` (alias `codecept_helper)`, object use for writing custom Helpers. Generator updated. Changes to [#48](https://github.com/codeceptjs/CodeceptJS/issues/48)
|
|
1618
1645
|
|
|
1619
1646
|
## 0.2.5
|
|
1620
1647
|
|
|
1621
|
-
* Fixed issues with using yield inside a test [#45](https://github.com/
|
|
1622
|
-
* Fixed generating a custom helper. Helper class is now accessible with `codecept_helper` var. Fixes [#48](https://github.com/
|
|
1648
|
+
* Fixed issues with using yield inside a test [#45](https://github.com/codeceptjs/CodeceptJS/issues/45) [#47](https://github.com/codeceptjs/CodeceptJS/issues/47) [#43](https://github.com/codeceptjs/CodeceptJS/issues/43)
|
|
1649
|
+
* Fixed generating a custom helper. Helper class is now accessible with `codecept_helper` var. Fixes [#48](https://github.com/codeceptjs/CodeceptJS/issues/48)
|
|
1623
1650
|
|
|
1624
1651
|
## 0.2.4
|
|
1625
1652
|
|
|
@@ -1652,7 +1679,7 @@ Whenever you need to create `I` object (in page objects, custom steps, but not i
|
|
|
1652
1679
|
- mouse: `rightClick`
|
|
1653
1680
|
* tests added
|
|
1654
1681
|
* **[WebDriverIO]** proxy configuration added by **[petehouston](https://github.com/petehouston)**
|
|
1655
|
-
* **[WebDriverIO]** fixed `waitForText` method by **[roadhump](https://github.com/roadhump)**. Fixes [#11](https://github.com/
|
|
1682
|
+
* **[WebDriverIO]** fixed `waitForText` method by **[roadhump](https://github.com/roadhump)**. Fixes [#11](https://github.com/codeceptjs/CodeceptJS/issues/11)
|
|
1656
1683
|
* Fixed creating output dir when it already exists on init by **[alfirin](https://github.com/alfirin)**
|
|
1657
1684
|
* Fixed loading of custom helpers
|
|
1658
1685
|
|