2
0
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:
wolflu05
2024-09-18 15:17:48 +02:00
parent b7aa82d3c4
commit 1c11658986

View File

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