Skip to content

Commit 58680c4

Browse files
authored
2.3 release (#1849)
* fixed event.step.comment to use consts * fixes to docs * updated accessibility id search, docs * updates to docs and changelogs * preparing release
1 parent d026ff1 commit 58680c4

29 files changed

+1192
-127
lines changed

CHANGELOG.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,41 @@
1+
## 2.3.0
2+
3+
* [GraphQL][GraphQLDataFactory] **Helpers for data management over GraphQL** APIs added. By @radhey1851.
4+
* Learn how to [use GraphQL helper](https://codecept.io/data#graphql) to access GarphQL API
5+
* And how to combine it with [GraphQLDataFactory](https://codecept.io/data#graphql-data-factory) to generate and persist test data.
6+
* **Updated to use Mocha 6**. See #1802 by @elukoyanov
7+
* **Parallel testing by workers introduced** by @VikalpP and @davertmik. Use `run-workers` command as faster and simpler alternative to `run-multiple`. Requires NodeJS v12
8+
9+
```
10+
# run all tests in parallel using 3 workers
11+
npx codeceptjs run-workers 3
12+
```
13+
14+
* 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 for more details.
15+
16+
```
17+
npx codeceptjs dry-run
18+
```
19+
20+
* [Appium] Optimization when clicking, searching for fields by accessibility id. See #1777 by @gagandeepsingh26
21+
* [TestCafe] Fixed `switchTo` by @KadoBOT
22+
* [WebDrover] Added geolocation actions by @PeterNgTr
23+
* `grabGeoLocation()`
24+
* `setGeoLocation()`
25+
* [Polly] Check typeof arguments for mock requests by @VikalpP. Fixes #1815
26+
* CLI improvements by @jamesgeorge007
27+
* `codeceptjs` command prints list of all available commands
28+
* added `codeceptjs -V` flag to print version information
29+
* warns on unknown command
30+
* Added TypeScript files support to `run-multiple` by @z4o4z
31+
* Fixed element position bug in locator builder. See #1829 by @AnotherAnkor
32+
* Various TypeScript typings updates by @elukoyanov and @Vorobeyko
33+
* Added `event.step.comment` event for all comment steps like `I.say` or gherking steps.
34+
135
## 2.2.1
236

337
* [WebDriver] A [dedicated guide](https://codecept.io/webdriver) written.
4-
* [TestCade] A [dedicated guide](https://codecept.io/testcafe) written.
38+
* [TestCafe] A [dedicated guide](https://codecept.io/testcafe) written.
539
* [Puppeteer] A [chapter on mocking](https://codecept.io/puppeteer#mocking-requests) written
640
* [Puppeteer][Nightmare][TestCafe] Window mode is enabled by default on `codeceptjs init`.
741
* [TestCafe] Actions implemented by @hubidu

bin/codecept.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env node
22
const program = require('commander');
3-
const path = require('path');
4-
const Config = require('../lib/config');
53
const Codecept = require('../lib/codecept');
64
const { print, error } = require('../lib/output');
75

@@ -157,7 +155,7 @@ program.command('run-multiple [suites...]')
157155
.action(require('../lib/command/run-multiple'));
158156

159157
program.command('dry-run [test]')
160-
.description('Executes tests multiple')
158+
.description('Prints step-by-step scenario for a test without actually running it')
161159
.option('-p, --plugins <k=v,k2=v2,...>', 'enable plugins, comma-separated')
162160
.option('--bootstrap', 'enable bootstrap script for dry-run')
163161
.option('-c, --config [file]', 'configuration file to be used')

docs/changelog.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,27 @@ id: changelog
33
title: Releases
44
---
55

6+
## 2.3.0
7+
8+
* [GraphQL][GraphQLDataFactory] Helpers introduced for **data management over GraphQL** APIs. By **[radhey1851](https://github.com/radhey1851)**.
9+
* Learn how to [use GraphQL helper docs](https://codecept.io/data#graphql)
10+
* And how to combine it with **[GraphQLDataFactory]** * **Updated to use Mocha 6**. See [#1802](https://github.com/Codeception/CodeceptJS/issues/1802) by **[elukoyanov](https://github.com/elukoyanov)**
11+
* **[Appium]** Optimization when clicking, searching for fields by accessibility id. See [#1777](https://github.com/Codeception/CodeceptJS/issues/1777) by **[gagandeepsingh26](https://github.com/gagandeepsingh26)**
12+
* **[TestCafe]** Fixed `switchTo` by **[KadoBOT](https://github.com/KadoBOT)**
13+
* **[WebDrover]** Added geolocation actions by **[PeterNgTr](https://github.com/PeterNgTr)**
14+
* `grabGeoLocation()`
15+
* `setGeoLocation()`
16+
* **[Polly]** Check typeof arguments for mock requests by **[VikalpP](https://github.com/VikalpP)**. Fixes [#1815](https://github.com/Codeception/CodeceptJS/issues/1815)
17+
* CLI improvements by **[jamesgeorge007](https://github.com/jamesgeorge007)**
18+
* `codeceptjs` command prints list of all available commands
19+
* added `codeceptjs -V` flag to print version information
20+
* warns on unknown command
21+
622
## 2.2.1
723

824
* **[WebDriver]** A [dedicated guide](https://codecept.io/webdriver) written.
925
* **[TestCafe]** A [dedicated guide](https://codecept.io/testcafe) written.
10-
* **[Puppeteer]** A [chapter on mocking](https://codecept.io/puppeteer#mocking) written
26+
* **[Puppeteer]** A [chapter on mocking](https://codecept.io/puppeteer#mocking-requests) written
1127
* [Puppeteer][Nightmare][TestCafe] Window mode is enabled by default on `codeceptjs init`.
1228
* **[TestCafe]** Actions implemented by **[hubidu](https://github.com/hubidu)**
1329
* `grabPageScrollPosition`
@@ -31,7 +47,6 @@ title: Releases
3147
* Fix `--path` option on `gherkin:snippets` command by **[asselin](https://github.com/asselin)**. See [#1790](https://github.com/Codeception/CodeceptJS/issues/1790)
3248
* Added `--feature` option to `gherkin:snippets` to enable creating snippets for a subset of .feature files. See [#1803](https://github.com/Codeception/CodeceptJS/issues/1803) by **[asselin](https://github.com/asselin)**.
3349
* Fixed: dynamic configs not reset after test. Fixes [#1776](https://github.com/Codeception/CodeceptJS/issues/1776) by **[cviejo](https://github.com/cviejo)**.
34-
* allurePlugin - fixed displaying ANSI chars in reports by **[Vorobeyko](https://github.com/Vorobeyko)**
3550

3651
## 2.2.0
3752

docs/helpers/Appium.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This helper should be configured in codecept.json or codecept.conf.js
4444
- `app` - The absolute local path or remote http URL to an .ipa or .apk file, or a .zip containing one of these. Appium will attempt to install this app binary on the appropriate device first.
4545
- `browserName`: Name of mobile web browser to automate. Should be an empty string if automating an app instead.
4646

47-
Example:
47+
Example Android App:
4848

4949
```js
5050
{
@@ -62,6 +62,47 @@ Example:
6262
}
6363
```
6464

65+
Example iOS Mobile Web with local Appium:
66+
67+
```js
68+
{
69+
helpers: {
70+
Appium: {
71+
platform: "iOS",
72+
url: "https://the-internet.herokuapp.com/",
73+
desiredCapabilities: {
74+
deviceName: "iPhone X",
75+
platformVersion: "12.0",
76+
browserName: "safari"
77+
}
78+
}
79+
}
80+
}
81+
```
82+
83+
Example iOS Mobile Web on BrowserStack:
84+
85+
```js
86+
{
87+
helpers: {
88+
Appium: {
89+
host: "hub-cloud.browserstack.com",
90+
port: 4444,
91+
user: process.env.BROWSERSTACK_USER,
92+
key: process.env.BROWSERSTACK_KEY,
93+
platform: "iOS",
94+
url: "https://the-internet.herokuapp.com/",
95+
desiredCapabilities: {
96+
realMobile: "true",
97+
device: "iPhone 8",
98+
os_version: "12",
99+
browserName: "safari"
100+
}
101+
}
102+
}
103+
}
104+
```
105+
65106
Additional configuration params can be used from [https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md][3]
66107

67108
## Access From Helpers

0 commit comments

Comments
 (0)