Handle no-tasks mode in guest v2
This commit is contained in:
@@ -57,4 +57,14 @@ describe('TaskDetailScreen', () => {
|
||||
|
||||
expect(await screen.findByText('Capture the dancefloor')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('shows disabled state when tasks are disabled', () => {
|
||||
render(
|
||||
<EventDataProvider token="token" tasksEnabledFallback={false}>
|
||||
<TaskDetailScreen />
|
||||
</EventDataProvider>
|
||||
);
|
||||
|
||||
expect(screen.getByText('Tasks are disabled')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user