mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
fix(mobile): harden back gestures and repair CI regressions
Reflect the drag position in the sheet scrim and match back gestures to the reading direction. Keep Escape on the top overlay and update failing tests for the redesigned forms, navigation, and offline preparation. Remove dead exports and lower obsolete lint counts.
This commit is contained in:
@@ -43,7 +43,7 @@ describe('BookingImportModal', () => {
|
||||
const upload = vi.fn(() => HttpResponse.json({ jobId: 'mobile-pdf' }));
|
||||
server.use(http.post('/api/trips/4/reservations/import/booking/async', upload));
|
||||
render(<MBookingImportSheet {...defaultProps} kind="bookings" onClose={onClose} />);
|
||||
expect(screen.getByRole('dialog', { name: 'Import booking confirmations' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('dialog', { name: 'Import from file' })).toBeInTheDocument();
|
||||
await userEvent.upload(fileInput(), [pdf, eml()]);
|
||||
await userEvent.click(screen.getByRole('button', { name: 'Remove: booking.eml' }));
|
||||
const submit = screen.getByRole('button', { name: 'Import' });
|
||||
|
||||
Reference in New Issue
Block a user