Fix notification event names and allow welcome onboarding
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-04 11:22:38 +01:00
parent 049c4f82b9
commit 9ddb135c03
5 changed files with 53 additions and 3 deletions

View File

@@ -27,7 +27,14 @@ vi.mock('react-i18next', () => ({
vi.mock('../../api', () => ({
listNotificationLogs: vi.fn().mockResolvedValue([]),
markNotificationLogs: vi.fn(),
getEvents: vi.fn().mockResolvedValue([]),
getEvents: vi.fn().mockResolvedValue([
{
id: 1,
slug: 'demo-event',
name: { de: 'Demo Event' },
status: 'active',
},
]),
}));
vi.mock('../../auth/tokens', () => ({
@@ -131,5 +138,6 @@ describe('MobileNotificationsPage', () => {
render(<MobileNotificationsPage />);
expect(await screen.findByText('All caught up')).toBeInTheDocument();
expect(await screen.findByText('Demo Event')).toBeInTheDocument();
});
});