fix: expose degraded fallback context status (#97)
This commit is contained in:
1 parent
b2de3b7eeb
commit
b41d7ad03a
2 files changed
+8
-1
No files matched your search
@@ -9,3 +9,10 @@ async def test_dashboard_renders_repo_mix_placeholder_before_javascript_runs():
|
||||
server_rendered_html = html.split("<script>", 1)[0]
|
||||
|
||||
assert '<div class="small" id="repo-mix">Loading…</div>' in server_rendered_html
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_dashboard_marks_fallback_context_as_degraded_instead_of_live():
|
||||
html = await dashboard()
|
||||
|
||||
assert "data.error ? 'Degraded · ' + data.error : 'Live · updated just now'" in html
|
||||
Reference in new issue
Block a user