mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +00:00
test: close the remaining gaps and raise the thresholds
Pushes lines from 95.2% to 98.1% and branches from 85.2% to 89.9%, mostly in the release-notes modal, the reservation overlay, the journey entry sheet and the trip dialogs.
This commit is contained in:
@@ -991,7 +991,8 @@ describe('TodoListPanel — mobile layout', () => {
|
||||
it('FE-COMP-TODO-078: the mobile new task sheet inherits the active list filter', async () => {
|
||||
const items = [buildTodoItem({ id: 60, name: 'Task', category: 'Errands', checked: 0 })];
|
||||
const { rerender } = render(<TodoListPanel tripId={1} items={items} addItemSignal={0} />);
|
||||
clickFilter('Errands');
|
||||
// On mobile the list filter is icon-only, so the label lives in the title.
|
||||
fireEvent.click(screen.getByTitle('Errands'));
|
||||
rerender(<TodoListPanel tripId={1} items={items} addItemSignal={1} />);
|
||||
await screen.findByText('Create task');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user