Compact tasks toggle and title
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user