Skip to content

Commit 61669c6

Browse files
authored
Bugfix/heal (#3820)
* version release, revert of docs * udpated changelog with explicit method names * fixed heal plugin * fixed tests and lint
1 parent 3ca54eb commit 61669c6

23 files changed

+6508
-17
lines changed

CHANGELOG.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33
🛩️ Features
44

5-
* [Playwright] Provide new steps to check network traffic #3748 - by @ngraf @KobeNguyenT
5+
* [Playwright] Added commands to check network traffic #3748 - by @ngraf @KobeNguyenT
6+
* `startRecordingTraffic`
7+
* `grabRecordedNetworkTraffics`
8+
* `blockTraffic`
9+
* `mockTraffic`
10+
* `flushNetworkTraffics`
11+
* `stopRecordingTraffic`
12+
* `seeTraffic`
13+
* `grabTrafficUrl`
14+
* `dontSeeTraffic`
15+
16+
Examples:
617

718
```js
819
// recording traffics and verify the traffic

docs/changelog.md

+51
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,57 @@ layout: Section
77

88
# Releases
99

10+
## 3.5.3
11+
12+
🛩️ Features
13+
14+
* **[Playwright]** Provide new steps to check network traffic [#3748](https://github.com/codeceptjs/CodeceptJS/issues/3748) - by **[ngraf](https://github.com/ngraf)** **[KobeNguyenT](https://github.com/KobeNguyenT)**
15+
16+
```js
17+
// recording traffics and verify the traffic
18+
await I.startRecordingTraffic();
19+
I.amOnPage('https://codecept.io/');
20+
await I.seeTraffic({ name: 'traffics', url: 'https://codecept.io/img/companies/BC_LogoScreen_C.jpg' });
21+
```
22+
23+
```js
24+
// block the traffic
25+
I.blockTraffic('https://reqres.in/api/comments/*');
26+
await I.amOnPage('/form/fetch_call');
27+
await I.startRecordingTraffic();
28+
await I.click('GET COMMENTS');
29+
await I.see('Can not load data!');
30+
```
31+
32+
```js
33+
// check the traffic with advanced params
34+
I.amOnPage('https://openai.com/blog/chatgpt');
35+
await I.startRecordingTraffic();
36+
await I.seeTraffic({
37+
name: 'sentry event',
38+
url: 'https://images.openai.com/blob/cf717bdb-0c8c-428a-b82b-3c3add87a600',
39+
parameters: {
40+
width: '1919',
41+
height: '1138',
42+
},
43+
});
44+
```
45+
46+
🐛 Bugfix
47+
48+
* **[retryStepPlugin]** Fix retry step when using global retry [#3768](https://github.com/codeceptjs/CodeceptJS/issues/3768) - by **[KobeNguyenT](https://github.com/KobeNguyenT)**
49+
50+
🗑 Deprecated
51+
52+
* Nightmare and Protractor helpers have been deprecated
53+
54+
## 3.5.2
55+
56+
🐛 Bug Fixes
57+
58+
* **[Playwright]** reverted `clearField` to previous implementation
59+
* **[OpenAI]** fixed running helper in pause mode. [#3755](https://github.com/codeceptjs/CodeceptJS/issues/3755) by **[KobeNguyenT](https://github.com/KobeNguyenT)**
60+
1061
## 3.5.1
1162

1263
🛩️ Features

0 commit comments

Comments
 (0)