Skip to content

Commit 035b65d

Browse files
Release 3.3.7 (#3506)
* updated docs * version bump * added changelog, improved docs * Update typescript.md Co-authored-by: Peter Ng <peter.nguyentr@gmail.com>
1 parent 6b5b345 commit 035b65d

File tree

10 files changed

+2354
-45
lines changed

10 files changed

+2354
-45
lines changed

CHANGELOG.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,44 @@
1+
## 3.3.7
2+
3+
🛩️ Features
4+
5+
* **Promise-based typings** for TypeScript definitions in #3465 by @nlespiaucq. If you use TypeScript or use linters [check how it may be useful to you](https://bit.ly/3XIMq6n).
6+
* **Translation** improved to use [custom vocabulary](https://codecept.io/translation/).
7+
* [Playwright] Added methods in #3398 by @mirao
8+
* `restartBrowser` - to restart a browser (with different config)
9+
* `_createContextPage` - to create a new browser context with a page from a helper
10+
* Added [Cucumber custom types](/bdd#custom-types) for BDD in #3435 by @Likstern
11+
* Propose using JSONResponse helper when initializing project for API testing. #3455 by @PeterNgTr
12+
* When translation enabled, generate tests using localized aliases. By @davertmik
13+
14+
🐛 Bugfixes
15+
16+
* Fixed #3462 `TypeError: Cannot read properties of undefined (reading 'setStatus')` by @dwentland24 in #3438
17+
* Fixed creating steps file for TypeScript setup #3459 by @PeterNgTr
18+
* Fixed issue of after all event in `run-rerun` command after complete execution #3464 by @jain-neeeraj
19+
* [Playwright][WebDriver][Appium] Do not change `waitForTimeout` value on validation. See #3478 by @pmajewski24. Fixes #2589
20+
* [Playwright][WebDriver][Protractor][Puppeteer][TestCafe] Fixes `Element "{null: undefined}" was not found` and `element ([object Object]) still not present` messages when using object locators. See #3501 and #3502 by @pmajewski24
21+
* [Playwright] Improved file names when downloading file in #3449 by @PeterNgTr. Fixes #3412 and #3409
22+
* Add default value to `profile` env variable. See #3443 by @dwentland24. Resolves #3339
23+
* [Playwright] Using system-native path separator when saving artifacts in #3460 by @PeterNgTr
24+
* [Playwright] Saving videos and traces from multiple sessions in #3505 by @davertmik
25+
* [Playwright] Fixed `amOnPage` to navigate to `about:blank` by @zaxoavoki in #3470 Fixes #2311
26+
* Various typing improvements by @AWolf81 @PeterNgTr @mirao
27+
28+
📖 Documentation
29+
30+
* Updated [Auickstart](https://codecept.io/quickstart/) with detailed explanation of questions in init
31+
* Added [Translation](/translations/) guide
32+
* Updated [TypeScript](https://bit.ly/3XIMq6n) guide for promise-based typings
33+
* Reordered guides list on a website
34+
135
## 3.3.6
236

337
* [`run-rerun`](https://codecept.io/commands/#run-rerun) command was re-introduced by @dwentland24 in #3436. Use it to perform run multiple times and detect flaky tests
438
* Enabled `retryFailedStep` by default in `@codeceptjs/configure` v 0.10. See https://github.com/codeceptjs/configure/pull/26
539
* [Playwright] Fixed properties types "waitForNavigation" and "firefox" by @mirao in #3401
640
* [REST] Changed "endpoint" to optional by @mirao in #3404
7-
* [REST] Use [`secret`]() for form encoded string by @PeterNgTr:
41+
* [REST] Use [`secret`](/secrets) for form encoded string by @PeterNgTr:
842

943
```js
1044
const secretData = secret('name=john&password=123456');

docs/basics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ The `I` object is an **actor**, an abstraction for a testing user. The `I` is a
2323

2424
## Architecture
2525

26-
CodeceptJS bypasses execution commands to helpers. Depending on the helper enabled, your tests will be executed differently. If you need cross-browser support you should choose Selenium-based WebDriver or TestCafé. If you are interested in speed - you should use Chrome-based Puppeteer.
26+
CodeceptJS bypasses execution commands to helpers. Depending on the helper enabled, your tests will be executed differently.
2727

2828
The following is a diagram of the CodeceptJS architecture:
2929

3030
![architecture](/img/architecture.png)
3131

3232
All helpers share the same API, so it's easy to migrate tests from one backend to another.
33-
However, because of the difference in backends and their limitations, they are not guaranteed to be compatible with each other. For instance, you can't set request headers in WebDriver or Protractor, but you can do so in Puppeteer or Nightmare.
33+
However, because of the difference in backends and their limitations, they are not guaranteed to be compatible with each other. For instance, you can't set request headers in WebDriver but you can do so in Playwright or Puppeteer.
3434

3535
**Pick one helper, as it defines how tests are executed.** If requirements change it's easy to migrate to another.
3636

docs/helpers/GraphQL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ I.sendMutation(`
9393
#### Parameters
9494

9595
- `mutation` **[String][3]**
96-
- `variables` **[object][2]** that may go along with the mutation
97-
- `options` **[object][2]** are additional query options
98-
- `headers` **[object][2]**
96+
- `variables` **[object][2]?** that may go along with the mutation
97+
- `options` **[object][2]?** are additional query options
98+
- `headers` **[object][2]?**
9999

100100
Returns **any** Promise<any>
101101

@@ -117,9 +117,9 @@ const user = response.data.data;
117117
#### Parameters
118118

119119
- `query` **[String][3]**
120-
- `variables` **[object][2]** that may go along with the query
121-
- `options` **[object][2]** are additional query options
122-
- `headers` **[object][2]**
120+
- `variables` **[object][2]?** that may go along with the query
121+
- `options` **[object][2]?** are additional query options
122+
- `headers` **[object][2]?**
123123

124124
Returns **any** Promise<any>
125125

0 commit comments

Comments
 (0)