Compare commits

..

No commits in common. "d7bdbd3e1881e4b8048af92eeb0616d8e79703af" and "582ab559c7dead8b78ccc98805dabc70b6ede5e5" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View File

@ -258,7 +258,7 @@ textarea { resize: vertical; min-height: 120px; }
paintEventStream(await res.json());
setEventStreamStatus('Updated ' + fmt(new Date()));
} catch (e) {
setEventStreamStatus('Update failed · showing last activity');
qs('#gitea-events').innerHTML = '<div class="muted">Event stream unavailable.</div>';
}
}

View File

@ -28,13 +28,6 @@ def test_event_stream_reports_when_activity_was_refreshed():
assert "setEventStreamStatus('Updated ' + fmt(new Date()))" in html
def test_event_stream_reports_refresh_failure_without_erasing_visible_events():
html = DASHBOARD.read_text()
assert "setEventStreamStatus('Update failed · showing last activity')" in html
assert "qs('#gitea-events').innerHTML = '<div class=\"muted\">Event stream unavailable.</div>'" not in html
@pytest.mark.anyio
async def test_event_stream_returns_recent_authenticated_gitea_activity(monkeypatch):
expected = [{"type": "create", "actor": {"login": "timmy"}}]