+
{items.map((item) => (
{item.label}
))}
@@ -324,6 +324,7 @@ describe('MobileDashboardPage', () => {
fixtures.activePackage.remaining_events = 3;
fixtures.event.tasks_count = 4;
fixtures.event.engagement_mode = undefined;
+ fixtures.event.settings = { location: 'Berlin' };
navigateMock.mockClear();
window.sessionStorage.clear();
});
@@ -368,9 +369,23 @@ describe('MobileDashboardPage', () => {
it('shows the activity pulse strip', () => {
render();
- expect(screen.getAllByText('Photos').length).toBeGreaterThan(0);
- expect(screen.getAllByText('Guests').length).toBeGreaterThan(0);
- expect(screen.getAllByText('Pending').length).toBeGreaterThan(0);
+ const strip = screen.getByTestId('kpi-strip');
+
+ expect(within(strip).getAllByText('Photos').length).toBeGreaterThan(0);
+ expect(within(strip).getAllByText('Guests').length).toBeGreaterThan(0);
+ expect(within(strip).getAllByText('Pending').length).toBeGreaterThan(0);
+ expect(within(strip).getAllByText('Live Show approved').length).toBeGreaterThan(0);
+ });
+
+ it('replaces pending with likes when auto-approval is enabled', () => {
+ fixtures.event.settings = { location: 'Berlin', guest_upload_visibility: 'immediate' };
+
+ render();
+
+ const strip = screen.getByTestId('kpi-strip');
+
+ expect(within(strip).queryByText('Pending')).not.toBeInTheDocument();
+ expect(within(strip).getAllByText('Likes total').length).toBeGreaterThan(0);
});
it('shows shortcut sections for members', () => {