diff --git a/src/frontend/tests/pui_printing.spec.ts b/src/frontend/tests/pui_printing.spec.ts index 6381e57727..a5de690f8a 100644 --- a/src/frontend/tests/pui_printing.spec.ts +++ b/src/frontend/tests/pui_printing.spec.ts @@ -141,5 +141,14 @@ test('PUI - Report Editing', async ({ page }) => { expect(await msg[0].jsonValue()).toBe('updatePreview'); 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(); });