|
| 1 | +## 2.6.1 |
| 2 | + |
| 3 | +* [screenshotOnFail plugin] Fixed saving screenshot of active session. |
| 4 | +* [screenshotOnFail plugin] Fix issue #2301 when having the flag `uniqueScreenshotNames`=true results in `undefined` in screenshot file name by @PeterNgTr |
| 5 | +* [WebDriver] Fixed `waitForElement` not applying the optional second argument to override the default timeout in webdriverio 6. Fix by @Mooksc |
| 6 | +* [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 by @Mooksc |
| 7 | + |
| 8 | +## 2.6.0 |
| 9 | + |
| 10 | +* **[Playwright] Updated to Playwright 0.12** by @Georgegriff. |
| 11 | + |
| 12 | +Upgrade playwright to ^0.12: |
| 13 | + |
| 14 | +``` |
| 15 | +npm i playwright@^0.12 --save |
| 16 | +``` |
| 17 | + |
| 18 | +[Notable changes](https://github.com/microsoft/playwright/releases/tag/v0.12.0): |
| 19 | + * Fixed opening two browsers on start |
| 20 | + * `executeScript` - passed function now accepts only one argument. Pass in objects or arrays if you need multtple arguments: |
| 21 | +```js |
| 22 | +// Old style, does not work anymore: |
| 23 | +I.executeScript((x, y) => x + y, x, y); |
| 24 | +// New style, passing an object: |
| 25 | +I.executeScript(({x, y}) => x + y, {x, y}); |
| 26 | +``` |
| 27 | + * `click` - automatically waits for element to become clickable (visible, not animated) and waits for navigation. |
| 28 | + * `clickLink` - deprecated |
| 29 | + * `waitForClickable` - deprecated |
| 30 | + * `forceClick` - added |
| 31 | + * Added support for custom locators. See #2277 |
| 32 | + * Introduced [device emulation](/playwright/#device-emulation): |
| 33 | + * globally via `emulate` config option |
| 34 | + * per session |
| 35 | + |
| 36 | +**[WebDriver] Updated to webdriverio v6** by @PeterNgTr. |
| 37 | + |
| 38 | +Read [release notes](https://webdriver.io/blog/2020/03/26/webdriverio-v6-released.html), then |
| 39 | +upgrade webdriverio to ^6.0: |
| 40 | + |
| 41 | +``` |
| 42 | +npm i webdriverio@^6.0 --save |
| 43 | +``` |
| 44 | +*(webdriverio v5 support is deprecated and will be removed in CodeceptJS 3.0)* |
| 45 | + |
| 46 | +[WebDriver] Introduced [Shadow DOM support](/shadow) by @gkushang |
| 47 | + |
| 48 | +```js |
| 49 | +I.click({ shadow: ['my-app', 'recipe-hello', 'button'] }); |
| 50 | +``` |
| 51 | + |
| 52 | +* **Fixed parallel execution of `run-workers` for Gherkin** scenarios by @koushikmohan1996 |
| 53 | +* [MockRequest] Updated and **moved to [standalone package](https://github.com/codecept-js/mock-request)**: |
| 54 | + * full support for record/replay mode for Puppeteer |
| 55 | + * added `mockServer` method to use flexible PollyJS API to define mocks |
| 56 | + * fixed stale browser screen in record mode. |
| 57 | +* [Playwright] Added support on for `screenshotOnFail` plugin by @amonkc |
| 58 | +* Gherkin improvement: setting different tags per examples. See #2208 by @acuper |
| 59 | +* [TestCafe] Updated `click` to take first visible element. Fixes #2226 by @theTainted |
| 60 | +* [Puppeteer][WebDriver] Updated `waitForClickable` method to check for element overlapping. See #2261 by @PiQx |
| 61 | +* [Puppeteer] Dropped `puppeteer-firefox` support, as Puppeteer supports Firefox natively. |
| 62 | +* [REST] Rrespect Content-Type header. See #2262 by @pmarshall-legacy |
| 63 | +* [allure plugin] Fixes BeforeSuite failures in allure reports. See #2248 by @Georgegriff |
| 64 | +* [WebDriver][Puppeteer][Playwright] A screenshot of for an active session is saved in multi-session mode. See #2253 by @ChexWarrior |
| 65 | +* Fixed `--profile` option by @pablopaul. Profile value to be passed into `run-multiple` and `run-workers`: |
| 66 | + |
| 67 | +``` |
| 68 | +npx codecept run-workers 2 --profile firefox |
| 69 | +``` |
| 70 | + |
| 71 | +Value is available at `process.env.profile` (previously `process.profile`). See #2302. Fixes #1968 #1315 |
| 72 | + |
| 73 | +* [commentStep Plugin introduced](/plugins#commentstep). Allows to annotate logical parts of a test: |
| 74 | + |
| 75 | +```js |
| 76 | +__`Given`; |
| 77 | +I.amOnPage('/profile') |
| 78 | + |
| 79 | +__`When`; |
| 80 | +I.click('Logout'); |
| 81 | + |
| 82 | +__`Then`; |
| 83 | +I.see('You are logged out'); |
| 84 | +``` |
| 85 | + |
1 | 86 | ## 2.5.0
|
2 | 87 |
|
3 | 88 | * **Experimental: [Playwright](/playwright) helper introduced**.
|
|
0 commit comments