2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

fix tests

This commit is contained in:
wolflu05
2024-09-18 14:47:24 +02:00
parent 2051bafceb
commit b7aa82d3c4
2 changed files with 11 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import { expect, test } from './baseFixtures.js';
import { baseUrl } from './defaults.js';
import { baseUrl, classicUrl } from './defaults.js';
import { doQuickLogin } from './login.js';
/*
@ -84,6 +84,15 @@ test('PUI - Report Printing', async ({ page }) => {
test('PUI - Report Editing', async ({ page }) => {
await doQuickLogin(page, 'admin', 'inventree');
// activate the sample plugin for this test
await page.request.patch(`${classicUrl}/api/plugins/sampleui/activate/`, {
headers: {
'Content-Type': 'application/json',
Authorization: `Basic YWRtaW46aW52ZW50cmVl`
},
data: { active: true }
});
// Navigate to the admin center
await page.getByRole('button', { name: 'admin' }).click();
await page.getByRole('menuitem', { name: 'Admin Center' }).click();