Add missing admin addon translations and fix event name rendering
This commit is contained in:
@@ -7,7 +7,7 @@ const navigateMock = vi.fn();
|
||||
const fixtures = vi.hoisted(() => ({
|
||||
event: {
|
||||
id: 42,
|
||||
name: 'Demo Event',
|
||||
name: { de: 'Demo Event DE', en: 'Demo Event EN' },
|
||||
slug: 'demo-event',
|
||||
status: 'published',
|
||||
event_date: '2026-02-01T12:00:00Z',
|
||||
@@ -165,6 +165,7 @@ describe('MobileEventAddonsPage', () => {
|
||||
it('renders add-ons and event-specific purchase history', async () => {
|
||||
render(<MobileEventAddonsPage />);
|
||||
|
||||
expect(await screen.findByText('Demo Event DE')).toBeInTheDocument();
|
||||
expect((await screen.findAllByText('Extend gallery 30 days')).length).toBeGreaterThan(0);
|
||||
expect(screen.getByText('Extra photos 500')).toBeInTheDocument();
|
||||
expect(screen.getByText('Purchased add-ons for this event')).toBeInTheDocument();
|
||||
|
||||
Reference in New Issue
Block a user