From 9acef53da90eca0cc9e3162e2f476217a08af5c4 Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Fri, 27 Sep 2024 16:45:05 -0400 Subject: [PATCH] fix(dashboards): Awalys give test widget a layout This fixes a case where the layout is empty and on render it assigns a layout, but as a side effect it causes the dashboard to be in an edited state. --- tests/acceptance/test_organization_dashboards.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/acceptance/test_organization_dashboards.py b/tests/acceptance/test_organization_dashboards.py index ae6ea4b583c84..8f35e86453e2a 100644 --- a/tests/acceptance/test_organization_dashboards.py +++ b/tests/acceptance/test_organization_dashboards.py @@ -259,6 +259,7 @@ def test_delete_existing_widget_does_not_trigger_new_widget_layout_reset(self): display_type=DashboardWidgetDisplayTypes.LINE_CHART, widget_type=DashboardWidgetTypes.DISCOVER, interval="1d", + detail={"layout": {"x": 0, "y": 0, "w": 2, "h": 2, "minH": 2}}, ) DashboardWidgetQuery.objects.create( widget=existing_widget, fields=["count()"], columns=[], aggregates=["count()"], order=0