fix: render repo mix before populating counts (#48)
This commit is contained in:
1 parent
e837934bec
commit
89c22c6091
2 files changed
+34
-27
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import pytest
|
||||
|
||||
from src.views import dashboard
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_dashboard_renders_repo_mix_placeholder_before_javascript_runs():
|
||||
html = await dashboard()
|
||||
server_rendered_html = html.split("<script>", 1)[0]
|
||||
|
||||
assert '<div class="small" id="repo-mix">Loading…</div>' in server_rendered_html
|
||||
Reference in new issue
Block a user