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
refactor: address review comments for ERR_ABORTED handling
- Extract retry logic into reusable helper method retryNavigation()
- Add URL_FETCH_ABORTED_RETRY_TIMEOUT constant (10 seconds)
- Change console.error to console.warn for consistency
- Preserve specific error types in retry error messages
- Add test case for successful retry after ERR_ABORTED
"Failed to fetch URL content: net::ERR_CONNECTION_REFUSED. The request was aborted, which may indicate the URL is inaccessible or blocked.",
301
+
"Failed to fetch URL content: net::ERR_CONNECTION_REFUSED - net::ERR_CONNECTION_REFUSED. The request was aborted, which may indicate the URL is inaccessible or blocked.",
302
302
)
303
303
304
304
expect(mockPage.goto).toHaveBeenCalledTimes(2)
305
305
})
306
+
307
+
it("should succeed when ERR_ABORTED retry is successful",async()=>{
308
+
constabortedError=newError("net::ERR_ABORTED at https://example.com")
309
+
// First call fails with ERR_ABORTED, second call (retry) succeeds
0 commit comments