mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 11:35:41 +00:00
fix tests hopefully
This commit is contained in:
@ -141,5 +141,14 @@ test('PUI - Report Editing', async ({ page }) => {
|
|||||||
expect(await msg[0].jsonValue()).toBe('updatePreview');
|
expect(await msg[0].jsonValue()).toBe('updatePreview');
|
||||||
expect((await msg[1].jsonValue())[0]).toBe(newTextareaValue);
|
expect((await msg[1].jsonValue())[0]).toBe(newTextareaValue);
|
||||||
|
|
||||||
|
// deactivate the sample plugin again after the test
|
||||||
|
await page.request.patch(`${classicUrl}/api/plugins/sampleui/activate/`, {
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
Authorization: `Basic YWRtaW46aW52ZW50cmVl`
|
||||||
|
},
|
||||||
|
data: { active: false }
|
||||||
|
});
|
||||||
|
|
||||||
await page.context().close();
|
await page.context().close();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user