12 lines
321 B
Python
12 lines
321 B
Python
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
|