Compact tasks toggle and title

This commit is contained in:
Codex Agent
2026-01-22 21:15:55 +01:00
parent e175cc7dde
commit 026259c199
4 changed files with 18 additions and 18 deletions

View File

@@ -277,7 +277,7 @@ describe('MobileEventTasksPage', () => {
it('renders the tabs and photo task header', async () => {
render(<MobileEventTasksPage />);
expect(await screen.findByText('Photo task mode')).toBeInTheDocument();
expect(await screen.findByText('Photo tasks for guests')).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Tasks' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Task Library' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Emotions' })).toBeInTheDocument();
@@ -294,7 +294,7 @@ describe('MobileEventTasksPage', () => {
render(<MobileEventTasksPage />);
const detailsLabel = 'Control whether guests see mission cards and prompts.';
expect(await screen.findByText('Photo task mode')).toBeInTheDocument();
expect(await screen.findByText('Photo tasks for guests')).toBeInTheDocument();
expect(screen.queryByText(detailsLabel)).not.toBeInTheDocument();
fireEvent.click(screen.getByLabelText(detailsLabel));
@@ -327,7 +327,7 @@ describe('MobileEventTasksPage', () => {
render(<MobileEventTasksPage />);
expect(await screen.findByText('Photo task mode')).toBeInTheDocument();
expect(await screen.findByText('Photo tasks for guests')).toBeInTheDocument();
await waitFor(() => {
expect(screen.queryByLabelText('Add')).not.toBeInTheDocument();
});