import json import subprocess from pathlib import Path import pytest from tests.dashboard_bundle import dashboard WIDGETS = Path(__file__).parents[1] / "frontend" / "widgets.js" @pytest.mark.anyio async def test_dashboard_renders_repo_mix_placeholder_before_javascript_runs(): html = await dashboard() server_rendered_html = html.split("