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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user