Update guest v2 branding and theming
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-03 15:18:44 +01:00
parent 10c99de1e2
commit 298a8375b6
57 changed files with 1416 additions and 277 deletions

View File

@@ -70,4 +70,27 @@ describe('EventBrandingProvider', () => {
unmount();
});
it('prefers explicit appearance over branding mode', async () => {
localStorage.setItem('theme', 'light');
const darkBranding: EventBranding = {
...sampleBranding,
mode: 'dark',
backgroundColor: '#0f172a',
};
const { unmount } = render(
<AppearanceProvider>
<EventBrandingProvider branding={darkBranding}>
<div>Guest</div>
</EventBrandingProvider>
</AppearanceProvider>
);
await waitFor(() => {
expect(document.documentElement.classList.contains('dark')).toBe(false);
});
unmount();
});
});