fix tests hopefully

This commit is contained in:
wolflu05 2024-09-18 15:17:48 +02:00
parent b7aa82d3c4
commit 1c11658986
No known key found for this signature in database
GPG Key ID: 9099EFC7C5EB963C
1 changed files with 9 additions and 0 deletions

View File

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