mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-26 19:50:15 +00:00
Stage 318: PR #1870 — Fix Kanban stale-client false-positive by @franksong2702
This commit is contained in:
@@ -1219,7 +1219,6 @@ async function hardRefreshWebUIClient(){
|
||||
function _kanbanLooksLikeStaleClientError(err){
|
||||
const msg = String((err && err.message) || err || '').toLowerCase();
|
||||
return !!(err && err.status === 404 && (
|
||||
msg === 'not found' ||
|
||||
msg.includes('unknown kanban endpoint') ||
|
||||
msg.includes('stale cached bundle')
|
||||
));
|
||||
|
||||
@@ -60,8 +60,8 @@ def test_unknown_kanban_endpoint_routes_are_wrapped_for_all_methods():
|
||||
def test_kanban_stale_client_error_renders_hard_refresh_escape_hatch():
|
||||
assert "function _kanbanLooksLikeStaleClientError(err)" in PANELS
|
||||
assert "err.status === 404" in PANELS
|
||||
assert "msg === 'not found'" in PANELS
|
||||
assert "msg.includes('unknown kanban endpoint')" in PANELS
|
||||
assert "msg.includes('stale cached bundle')" in PANELS
|
||||
assert "Kanban needs a hard refresh" in PANELS
|
||||
assert "Hard refresh now" in PANELS
|
||||
assert "navigator.serviceWorker.getRegistrations()" in PANELS
|
||||
|
||||
Reference in New Issue
Block a user