Repository navigation
Commit 3291a3f
authored
feat: include the recorded request in grabRecordedNetworkTraffics (#5801)
* feat: include request headers in grabRecordedNetworkTraffics
Every helper that records traffic (Playwright, Puppeteer, CDPBrowser) already
stores requestHeaders on each recorded request, but grabRecordedNetworkTraffics
dropped them, so tests had to reach into helper internals to assert on a
request header.
* feat: return the recorded request in grabRecordedNetworkTraffics
Expose url, method, headers and postData as a request object alongside
response, instead of only the headers.
* refactor: name the request object req to match resp; use a real header in the docs example
* fix: parse JSON post data in grabRecordedNetworkTraffics so every helper returns the same type1 parent 36be057 commit 3291a3f
3 files changed
Lines changed: 43 additions & 0 deletions
File tree
- docs/webapi
- lib/helper/network
- test/helper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
62 | 71 | | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
66 | 81 | | |
67 | 82 | | |
68 | 83 | | |
69 | 84 | | |
| 85 | + | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| |||
85 | 101 | | |
86 | 102 | | |
87 | 103 | | |
| 104 | + | |
88 | 105 | | |
89 | 106 | | |
90 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2523 | 2523 | | |
2524 | 2524 | | |
2525 | 2525 | | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
2526 | 2550 | | |
2527 | 2551 | | |
2528 | 2552 | | |
| |||
0 commit comments