From 6b6ca75914644838d71af2d1401c79a1d23c548c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 27 Jun 2026 02:03:37 +0000 Subject: [PATCH] Adjust API call --- .../tests/pages/pui_dashboard.spec.ts | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/frontend/tests/pages/pui_dashboard.spec.ts b/src/frontend/tests/pages/pui_dashboard.spec.ts index 8b3958319a..337d77f896 100644 --- a/src/frontend/tests/pages/pui_dashboard.spec.ts +++ b/src/frontend/tests/pages/pui_dashboard.spec.ts @@ -200,18 +200,15 @@ test('Dashboard - Preserve widget sizes', async ({ browser }) => { password: user.testcred }); - (await api) - .patch('user/me/profile/', { - data: { - widgets: { - widgets: ['ovr-so'], - layouts: inflated - } + const resp = await (await api).patch('user/me/profile/', { + data: { + widgets: { + widgets: ['ovr-so'], + layouts: inflated } - }) - .then((resp) => { - expect(resp.status()).toBe(200); - }); + } + }); + expect(resp.status()).toBe(200); await page.reload(); await page.getByText('Overdue Sales Orders').waitFor();