def test_sales_dashboard_index(  # type: ignore[no-untyped-def]
    superuser_authenticated_client, django_assert_num_queries
):
    """
    VERY basic test to check that the index page loads.
    """

    # Given
    url = reverse("sales_dashboard:index")

    # create some organisations so we can ensure there aren't any N+1 issues
    for i in range(10):
        Organisation.objects.create(name=f"Test organisation {i}")

    # When
    with django_assert_num_queries(5):
        response = superuser_authenticated_client.get(url)

    # Then
    assert response.status_code == 200

    VERY basic test to check that the index page loads.
    
api/tests/integration/sales_dashboard/test_integration_sales_dashboard.py