diff --git a/apps/electron-backend-e2e/src/settings.e2e.ts b/apps/electron-backend-e2e/src/settings.e2e.ts index 156f0a71b..1ecbb6e18 100644 --- a/apps/electron-backend-e2e/src/settings.e2e.ts +++ b/apps/electron-backend-e2e/src/settings.e2e.ts @@ -699,6 +699,18 @@ test.describe('Electron Settings', () => { await goToDashboard(app.mainWindow); await app.mainWindow.waitForURL(/\/workspace\/dashboard$/); + // The URL changes before the settings view is torn down and the + // dashboard renders. Wait for the dashboard itself, or the rail + // check passes vacuously and the "Dashboard" link below also + // matches the settings page's own "Dashboard" section link. + // Attached, not visible: with its only populated rail disabled + // the fixture's dashboard is empty and has no size. + await expect( + app.mainWindow.getByTestId('dashboard-page') + ).toBeAttached({ timeout: 20000 }); + await expect( + app.mainWindow.getByTestId('settings-section-dashboard') + ).toHaveCount(0); await expect( app.mainWindow.getByTestId('dashboard-recent-sources-rail') ).toHaveCount(0);