Commit bab0eb0
chore: clean up TestExpectations.upstream.json (#3391)
* chore: bump Chrome to 146.0.7680.76 and package version to 24.39.1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* test: mark console group test as expected fail for Firefox BiDi
Syncs with upstream CanaryTestExpectations.json for known WebDriver BiDi
bug: w3c/webdriver-bidi#1097
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: clean up TestExpectations.upstream.json by removing 14 non-upstream entries
Move 14 entries from upstream.json to local.json that don't exist in
the actual upstream Puppeteer test/TestExpectations.json. The upstream
file should only mirror upstream expectations.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* revert: remove local.json additions, only clean upstream.json
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: remove unwanted files and reset local.json/CdpPage.cs to master
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: align PageReloadTests attribute with upstream page.spec naming
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add missing upstream Response entries and skip Firefox hang
Add 2 entries missing from upstream.json:
- Response.buffer should throw if response has no body (firefox)
- Response.text should throw for redirected response (firefox/bidi)
Add local skip for ShouldWaitUntilResponseCompletes on Firefox (hangs).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add local expectations for tests not covered by upstream
These entries were removed from upstream.json (correctly, as they don't
exist upstream) but still need coverage in local.json since the tests
genuinely fail/hang on Firefox BiDi and WebDriver BiDi.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* revert: reset local.json to master
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: align ShouldWaitUntilResponseCompletes with upstream to fix Firefox BiDi
The test was hanging on Firefox BiDi because the server route handler
returned immediately after writing initial data, causing ASP.NET Core to
complete the response before the test could write additional chunks.
Key fixes:
- Keep route handler alive via TaskCompletionSource (matching upstream pattern)
- Set Content-Type header before writing (required by Firefox)
- Flush writes explicitly so data reaches the browser
- Use Page.WaitForResponseAsync instead of manual event wiring
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: align PageEventsConsoleTests spec attributes with upstream console.spec
PageEventsConsoleTests used "page.spec" as the spec file, but upstream
Puppeteer has all these tests in console.spec. This mismatch caused the
upstream SKIP/FAIL expectations to not apply, resulting in tests hanging
on Firefox BiDi (console events don't fire for network errors).
Changes:
- Change spec from "page.spec" to "console.spec" for all tests
- Add CancelAfter(30s) to ShouldHaveLocationWhenFetchFails as safety net
- Remove ERR_NAME filter in TCS to match upstream pattern
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use Firefox-compatible extension in webExtension test
Firefox doesn't support background.service_worker in extensions — it
requires background.scripts. Added the upstream Firefox extension asset
and updated the test to use the correct extension per browser, matching
upstream Puppeteer behavior.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9f758e8 commit bab0eb0
File tree
9 files changed
+3484
-1033
lines changed- lib
- PuppeteerSharp.Nunit/TestExpectations
- PuppeteerSharp.Tests
- Assets/simple-extension-firefox
- ConsoleTests
- NetworkTests
- PageTests
- WebExtensionTests
9 files changed
+3484
-1033
lines changedLines changed: 3409 additions & 972 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 260 | + | |
268 | 261 | | |
269 | 262 | | |
270 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 18 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | | - | |
60 | 63 | | |
61 | | - | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 66 | + | |
77 | 67 | | |
78 | | - | |
| 68 | + | |
79 | 69 | | |
80 | | - | |
81 | | - | |
| 70 | + | |
| 71 | + | |
82 | 72 | | |
| 73 | + | |
83 | 74 | | |
84 | 75 | | |
85 | 76 | | |
| |||
88 | 79 | | |
89 | 80 | | |
90 | 81 | | |
| 82 | + | |
91 | 83 | | |
92 | 84 | | |
93 | | - | |
| 85 | + | |
94 | 86 | | |
95 | 87 | | |
96 | 88 | | |
| |||
Lines changed: 20 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 223 | + | |
230 | 224 | | |
231 | | - | |
232 | | - | |
233 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
| 243 | + | |
246 | 244 | | |
247 | 245 | | |
248 | 246 | | |
| |||
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
| 298 | + | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
34 | 47 | | |
35 | 48 | | |
36 | | - | |
| 49 | + | |
37 | 50 | | |
38 | 51 | | |
39 | 52 | | |
0 commit comments