test(260928-ujj): rote Tests fuer Dashboard-Hintergrund in der Datenbank
- PATCH me/dashboard-background: Allowlist, UUID-Bildkennung, Mandantenbindung - getMe liefert dashboardBackground normalisiert - Web: Uebernahme der alten localStorage-Wahl, Hook liest aus dem Auth-Store Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -103,6 +103,7 @@ describe('Header — Sitzungswaechter (quick-260917-gyd)', () => {
|
||||
tenantId: 't1',
|
||||
hasAvatar: false,
|
||||
accentColor: null,
|
||||
dashboardBackground: { kind: 'preset', id: 'dunes' },
|
||||
},
|
||||
});
|
||||
|
||||
@@ -111,6 +112,8 @@ describe('Header — Sitzungswaechter (quick-260917-gyd)', () => {
|
||||
await waitFor(() =>
|
||||
expect(useAuthStore.getState().user?.username).toBe('schalli'),
|
||||
);
|
||||
// quick-260928-ujj: der Hintergrund kommt mit derselben Sitzungsantwort wie accentColor.
|
||||
expect(useAuthStore.getState().user?.dashboardBackground).toEqual({ kind: 'preset', id: 'dunes' });
|
||||
expect((window as any).location.href).toBe('');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user