From 5284e281287f6181745df02707c225a45fb249b8 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 27 Jun 2026 00:17:52 +0000 Subject: [PATCH] Add check for response status --- src/frontend/tests/pages/pui_dashboard.spec.ts | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/frontend/tests/pages/pui_dashboard.spec.ts b/src/frontend/tests/pages/pui_dashboard.spec.ts index 7bcd537d40..8b3958319a 100644 --- a/src/frontend/tests/pages/pui_dashboard.spec.ts +++ b/src/frontend/tests/pages/pui_dashboard.spec.ts @@ -200,14 +200,18 @@ test('Dashboard - Preserve widget sizes', async ({ browser }) => { password: user.testcred }); - (await api).patch('user/me/profile/', { - data: { - widgets: { - widgets: ['ovr-so'], - layouts: inflated + (await api) + .patch('user/me/profile/', { + data: { + widgets: { + widgets: ['ovr-so'], + layouts: inflated + } } - } - }); + }) + .then((resp) => { + expect(resp.status()).toBe(200); + }); await page.reload(); await page.getByText('Overdue Sales Orders').waitFor();