def test_node_version(node_version_app: AppHarness, page: Page):
    """Test for latest node version being able to run reflex.

    Args:
        node_version_app: running AppHarness instance
        page: playwright page instance
    """

    def get_latest_node_version():
        response = httpx.get("https://nodejs.org/dist/index.json")
        versions = response.json()

        # Assuming the first entry in the API response is the most recent version
        if versions:
            return versions[0]["version"]
        return None

    assert node_version_app.frontend_url is not None
    page.goto(node_version_app.frontend_url)
    expect(page.get_by_role("heading")).to_have_text(
        f"Node Version check {get_latest_node_version()}"
    )
Test for latest node version being able to run reflex.

    Args:
        node_version_app: running AppHarness instance
        page: playwright page instance
    
tests/test_node_version.py