Update guest v2 branding and theming
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user