Force page reload on tests

This commit is contained in:
Oliver Walters 2026-06-26 00:25:34 +00:00
parent f846230351
commit a70e6d5c63
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@ test('Dashboard - Basic', async ({ browser }) => {
// Reset dashboard widgets
await resetDashboard(page);
await page.reload();
await page.getByText('Use the menu to add widgets').waitFor();
@ -162,7 +163,11 @@ test('Dashboard - Preserve widget sizes', async ({ browser }) => {
const page = await doCachedLogin(browser, {
user: user
});
await resetDashboard(page);
await page.reload();
await page.getByText('Use the menu to add widgets').waitFor();
// Add widget A; this also persists to the backend user profile.
await page.getByLabel('dashboard-menu').click();