From 2ba56f57b20e54ae1f569542e79b57f30d1a92aa Mon Sep 17 00:00:00 2001 From: stroblme Date: Mon, 17 Aug 2026 12:03:54 +0200 Subject: [PATCH] Publish the dashboard the endpoint test asserts on A dashboard edit is a draft now, and the flow canvas draws the controls the panels actually carry, so the fixture has to publish it the same way it already publishes the flow. The assertion is unchanged. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01XC2jX6Hdj7pxGGKzBTrbqB --- frontend/tests/endpoints.spec.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/tests/endpoints.spec.ts b/frontend/tests/endpoints.spec.ts index 32b2de8..6e384f1 100644 --- a/frontend/tests/endpoints.spec.ts +++ b/frontend/tests/endpoints.spec.ts @@ -58,9 +58,18 @@ test.beforeAll(async ({ browser }) => { config: { target: `${flowName}.level` }, }, ] - await api(page, `/dashboards/${dashboardName}`, { - method: "PUT", - data: dashboard, + const draft = await ( + await api(page, `/dashboards/${dashboardName}`, { + method: "PUT", + data: dashboard, + }) + ).json() + // A dashboard edit is a draft, and the flow canvas draws the controls the + // panels actually carry — so the endpoint only exists once this is published, + // the same way the flow above had to be. + await api(page, `/dashboards/${dashboardName}/publish`, { + method: "POST", + data: { version: draft.version }, }) await page.close() })