Add check for response status

This commit is contained in:
Oliver Walters 2026-06-27 00:17:52 +00:00
parent 402099b57e
commit 5284e28128
1 changed files with 11 additions and 7 deletions

View File

@ -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();