Handle no-tasks mode in guest v2
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-05 18:12:29 +01:00
parent 5f75c7ca6a
commit ba56cb4e61
7 changed files with 76 additions and 10 deletions

View File

@@ -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();
});
});