test: classify deferred offline context rejection
All checks were successful
CI / lint (pull_request) Successful in 3m45s
CI / build-release (pull_request) Successful in 6s
CI / browser-journey (pull_request) Successful in 7m15s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy 2026-08-26 22:53:44 +00:00
parent a77a73a269
commit 94c18c7a35

View File

@ -306,9 +306,13 @@ def test_release_artifact_files_one_mobile_issue_exactly_once_after_offline_relo
f"requests={fake.requests[-20:]!r}" f"requests={fake.requests[-20:]!r}"
) )
# Deferred workspace startup can report its already-issued offline request # Deferred workspace startup can report its already-issued offline request
# after the pre-reconnect clear; retain every non-offline browser error. # after the pre-reconnect clear. Chromium uses either its explicit offline
# code or a generic fetch rejection for that same request, depending on
# whether the service worker or page observes the disconnect first.
browser_errors[:] = [ browser_errors[:] = [
error for error in browser_errors if "ERR_INTERNET_DISCONNECTED" not in error error for error in browser_errors
if "ERR_INTERNET_DISCONNECTED" not in error
and not error.startswith("context failed TypeError: Failed to fetch")
] ]
for _ in range(40): for _ in range(40):