Skip to content

Commit 6e5125c

Browse files
committed
release 2.6.1
1 parent 4aa73a0 commit 6e5125c

File tree

4 files changed

+89
-7
lines changed

4 files changed

+89
-7
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
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+
18
## 2.6.0
29

310
* **[Playwright] Updated to Playwright 0.12** by @Georgegriff.
@@ -20,6 +27,7 @@ I.executeScript(({x, y}) => x + y, {x, y});
2027
* `click` - automatically waits for element to become clickable (visible, not animated) and waits for navigation.
2128
* `clickLink` - deprecated
2229
* `waitForClickable` - deprecated
30+
* `forceClick` - added
2331
* Added support for custom locators. See #2277
2432
* Introduced [device emulation](/playwright/#device-emulation):
2533
* globally via `emulate` config option

docs/changelog.md

+76
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,82 @@ layout: Section
77

88
# Releases
99

10+
## 2.6.0
11+
12+
* **[Playwright] Updated to Playwright 0.12** by **[Georgegriff](https://github.com/Georgegriff)**.
13+
14+
Upgrade playwright to ^0.12:
15+
16+
```
17+
npm i playwright@^0.12 --save
18+
```
19+
20+
[Notable changes](https://github.com/microsoft/playwright/releases/tag/v0.12.0):
21+
* Fixed opening two browsers on start
22+
* `executeScript` - passed function now accepts only one argument. Pass in objects or arrays if you need multtple arguments:
23+
```js
24+
// Old style, does not work anymore:
25+
I.executeScript((x, y) => x + y, x, y);
26+
// New style, passing an object:
27+
I.executeScript(({x, y}) => x + y, {x, y});
28+
```
29+
* `click` - automatically waits for element to become clickable (visible, not animated) and waits for navigation.
30+
* `clickLink` - deprecated
31+
* `waitForClickable` - deprecated
32+
* Added support for custom locators. See [#2277](https://github.com/Codeception/CodeceptJS/issues/2277)
33+
* Introduced [device emulation](/playwright/#device-emulation):
34+
* globally via `emulate` config option
35+
* per session
36+
37+
**[WebDriver] Updated to webdriverio v6** by **[PeterNgTr](https://github.com/PeterNgTr)**.
38+
39+
Read [release notes](https://webdriver.io/blog/2020/03/26/webdriverio-v6-released.html), then
40+
upgrade webdriverio to ^6.0:
41+
42+
```
43+
npm i webdriverio@^6.0 --save
44+
```
45+
*(webdriverio v5 support is deprecated and will be removed in CodeceptJS 3.0)*
46+
**[WebDriver]** Introduced [Shadow DOM support](/shadow) by **[gkushang](https://github.com/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](https://github.com/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](https://github.com/amonkc)**
58+
* Gherkin improvement: setting different tags per examples. See [#2208](https://github.com/Codeception/CodeceptJS/issues/2208) by **[acuper](https://github.com/acuper)**
59+
* **[TestCafe]** Updated `click` to take first visible element. Fixes [#2226](https://github.com/Codeception/CodeceptJS/issues/2226) by **[theTainted](https://github.com/theTainted)**
60+
* [Puppeteer][WebDriver] Updated `waitForClickable` method to check for element overlapping. See [#2261](https://github.com/Codeception/CodeceptJS/issues/2261) by **[PiQx](https://github.com/PiQx)**
61+
* **[Puppeteer]** Dropped `puppeteer-firefox` support, as Puppeteer supports Firefox natively.
62+
* **[REST]** Rrespect Content-Type header. See [#2262](https://github.com/Codeception/CodeceptJS/issues/2262) by **[pmarshall-legacy](https://github.com/pmarshall-legacy)**
63+
* [allure plugin] Fixes BeforeSuite failures in allure reports. See [#2248](https://github.com/Codeception/CodeceptJS/issues/2248) by **[Georgegriff](https://github.com/Georgegriff)**
64+
* [WebDriver][Puppeteer][Playwright] A screenshot of for an active session is saved in multi-session mode. See [#2253](https://github.com/Codeception/CodeceptJS/issues/2253) by **[ChexWarrior](https://github.com/ChexWarrior)**
65+
* Fixed `--profile` option by **[pablopaul](https://github.com/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](https://github.com/Codeception/CodeceptJS/issues/2302). Fixes [#1968](https://github.com/Codeception/CodeceptJS/issues/1968) [#1315](https://github.com/Codeception/CodeceptJS/issues/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+
1086
## 2.5.0
1187

1288
* **Experimental: [Playwright](/playwright) helper introduced**.

docs/examples.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -52,21 +52,19 @@ This repository demonstrates usage of:
5252
* testing WYSIWYG editor
5353
* GitLab CI
5454

55-
## [CodeceptJS Cucumber BDD E2E Framework](https://github.com/gkushang/codeceptjs-bdd)
55+
## [CodeceptJS Cucumber E2E Framework](https://github.com/gkushang/codeceptjs-e2e)
5656

57-
This repository contains complete BDD E2E framework for CodeceptJS with Cucumber and SauceLabs Integration
57+
This repository contains complete E2E framework for CodeceptJS with Cucumber and SauceLabs Integration
5858

59-
* CodeceptJS-Cucumber BDD Framework. Link to [docs](https://gkushang.github.io/)
60-
* [CLI](https://gkushang.github.io/1-getting-started/setup-framework/) to quick start
59+
* CodecepJS-Cucumber E2E Framework
6160
* Saucelabs Integration
6261
* Run Cross Browser tests in Parallel on SauceLabs with a simple command
6362
* Run tests on `chrome:headless`
6463
* Page Objects
6564
* `Should.js` Assertion Library
66-
* Soft Assertions
6765
* Uses `wdio` service (selenium-standalone, sauce)
6866
* Allure HTML Reports
69-
* Uses shared configuration
67+
* Uses shared Master configuration
7068
* Sample example and feature files of GitHub Features
7169

7270
## [Amazon Tests v2](https://gitlab.com/thanhnguyendh/codeceptjs-wdio-services)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeceptjs",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "Supercharged End 2 End Testing Framework for NodeJS",
55
"keywords": [
66
"acceptance",

0 commit comments

Comments
 (0)