Adjust API call

This commit is contained in:
Oliver Walters 2026-06-27 02:03:37 +00:00
parent 5284e28128
commit 6b6ca75914
1 changed files with 8 additions and 11 deletions

View File

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