feat: report Gitea event stream freshness
This commit is contained in:
1 parent
1e17771840
commit
5a3f0128c4
2 files changed
+15
No files matched your search
@@ -20,6 +20,14 @@ def test_dashboard_has_realtime_gitea_event_stream_widget():
|
||||
assert "event.repo?.full_name" in html
|
||||
|
||||
|
||||
def test_event_stream_reports_when_activity_was_refreshed():
|
||||
html = DASHBOARD.read_text()
|
||||
|
||||
assert 'id="gitea-events-status"' in html
|
||||
assert "setEventStreamStatus('Updating…')" in html
|
||||
assert "setEventStreamStatus('Updated ' + fmt(new Date()))" in html
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_event_stream_returns_recent_authenticated_gitea_activity(monkeypatch):
|
||||
expected = [{"type": "create", "actor": {"login": "timmy"}}]
|
||||
|
||||
Reference in new issue
Block a user