Add check for response status
This commit is contained in:
parent
402099b57e
commit
5284e28128
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue