You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
End-to-end spec for the viewer's Try again and Reload page paths #435
The Try again feature (#416, #428) has unit tests for its pure helpers (openFailureHtml, reloadUrl, unavailableHtml, isRetryableUnavailable) and none for the behavior that matters to a visitor.
A reviewer applied eight single-line mutations to the code and all eight left the suite green (3010 of 3010 tests passed each time):
removing moduleFailed = true, so a chunk failure would offer a Try again that cannot work instead of Reload page;
making the click handler a no-op;
deleting the focus move after a failed retry;
not disabling the button while a retry runs;
dropping the onRetry or retried plumbing, so an outage would show no button or never say "still";
forcing reload to false;
not clearing aria-busy.
The commit message of #428 says the feature was checked with Playwright on Chromium and WebKit, but no spec or config is committed (@playwright/test and test:e2e are in package.json), so that evidence cannot be reproduced.
To do
A Playwright spec, with HTTP-level failure injection (aborting or failing the zarr store requests and the viewer chunk; no stand-ins for site code), for both the dataset page dialog and /dataset/<id>/embed:
The mount throws: message and Try again; a successful retry shows the viewer; a failed retry says "Still couldn't open" and focus is on the new button.
The store will not open (an outage): "could not load" with Try again; a failed retry says "still could not load"; a retry that finds no store leaves the focus on the message.
The viewer's chunk fails to load: the button reads Reload page and goes to the same address with ?view= naming the recording.
A double click on Try again opens once.
Add a playwright.config.ts and a CI job, since bun run test:e2e has no config today.
Confirm each of the eight mutations above now fails the spec.
Activity