test(e2e): count distinct tile URLs, tolerate transient image errors

The mobile map gate compared the cumulative request counter to the wanted
window, but the #70 rule re-asks a tile whose 403 became allowed when the
explored frame lands after the first window, so a correct load can be 481
attempts for a 480-tile window (seen once on a loaded host). Expose
data-tile-distinct and assert that no tile URL is fetched twice; the no-retry
proof stays the 403 test's per-URL count. The console collector now ignores the
browser's network-level resource line, like the fog suites: a transient tile
error is explicitly tolerated by the tile contract, and the page wait already
reflects it.
This commit is contained in:
2026-11-21 22:09:42 +01:00
parent 100df38230
commit 297718efdb
3 changed files with 26 additions and 7 deletions
+2 -1
View File
@@ -139,7 +139,8 @@ change them only if a slice needs a new *core* event, and say so in the PR.
for a new window or a reconnect). A transient `error` is deliberately not pending, otherwise one
host hiccup would hold the flag at `loading` and hang every e2e readiness wait; the hole it leaves
fills on the next window or reconnect. `data-tile-requests` counts image attempts (plus the single
status fetch used to classify an image error).
status fetch used to classify an image error); `data-tile-distinct` counts the distinct tile URLs
fetched, so the #70 re-ask of a tile whose 403 became allowed shows in the former, not the latter.
- **Why `<img>` and not `fetch` + `createImageBitmap`:** the browser's image loader does the
fetch/decode off the JS hot path; one `onload` per tile is the cheapest way to put the ~480 tiles
of a phone viewport on the GPU. A failed image is classified once with `fetch`, which is where the