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
Name non-HTML routes instead of a raw ERR_ABORTED #57
What
When a route doesn't serve HTML (a PDF, a download, an image), fail it with a named error such as /report.pdf: server sent application/pdf, not an HTML page instead of a raw net::ERR_ABORTED or a screenshot of the browser's PDF viewer.
Why
Routes from a sitemap (#46) or a crawl often include files. The raw navigation error makes the agent investigate a server problem that isn't one. yanfishel/visual-regression-test does this in apps/worker/src/capture.ts (navigateToPage).
How
After goto, check the main response's content-type. On ERR_ABORTED, probe the URL with a HEAD request and use its content-type in the message. This is a route error (exit 3), and #46 can drop such URLs before the run by extension.
Activity