From 1c11658986554f815a2f9a4d09b3e582a73483f0 Mon Sep 17 00:00:00 2001 From: wolflu05 <76838159+wolflu05@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:17:48 +0200 Subject: [PATCH] fix tests hopefully --- src/frontend/tests/pui_printing.spec.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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(); });