Take the mobile fixture's dashboard from the create call

A new dashboard is a draft, so reading it back published answers 404. The POST
already returns the document.
This commit is contained in:
2026-08-21 14:34:14 +02:00
parent 53ee5ef6e1
commit 835c467b0d
+1 -2
View File
@@ -171,9 +171,8 @@ test.beforeAll(async ({ browser }) => {
},
})
await api(page, `/dashboards/${dashboardName}`, { method: "POST" })
const dashboard = await (
await api(page, `/dashboards/${dashboardName}`)
await api(page, `/dashboards/${dashboardName}`, { method: "POST" })
).json()
dashboard.pages[0].sections[0].widgets = [
{