2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-13 22:21:37 +00:00

[FR] Save widget state per user (#9567)

* [FR] Save widget state per user
Fixes #9562

* cleanup

* fix doc strings

* add reset stage
This commit is contained in:
Matthias Mair
2025-04-24 09:29:28 +02:00
committed by GitHub
parent b86b1d4c4d
commit 71cf9f5452
6 changed files with 85 additions and 94 deletions

View File

@@ -78,7 +78,7 @@ export const doCachedLogin = async (
await page.waitForURL('**/web/**');
// Wait for the dashboard to load
await page.getByText('No widgets selected').waitFor();
//await page.getByText('No widgets selected').waitFor()
await page.waitForLoadState('load');
// Cache the login state

View File

@@ -5,6 +5,10 @@ import { setPluginState } from '../settings.js';
test('Dashboard - Basic', async ({ browser }) => {
const page = await doCachedLogin(browser);
// Reset wizards
await page.getByLabel('dashboard-menu').click();
await page.getByRole('menuitem', { name: 'Clear Widgets' }).click();
await page.getByText('Use the menu to add widgets').waitFor();
// Let's add some widgets