Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(journey): the entry picker takes clips, so the test may not insist on stills

Maurice39d832c77238
diff --git a/client/src/pages/JourneyDetailPage.test.tsx b/client/src/pages/JourneyDetailPage.test.tsx
index e86418ebc..1d2942123 100644
--- a/client/src/pages/JourneyDetailPage.test.tsx
+++ b/client/src/pages/JourneyDetailPage.test.tsx
@@ -2367,15 +2367,15 @@ describe('JourneyDetailPage', () => {
// ── FE-PAGE-JOURNEYDETAIL-105 ──────────────────────────────────────────
describe('FE-PAGE-JOURNEYDETAIL-105: EntryEditor has hidden file input', () => {
- it('has a hidden file input with accept="image/*" and multiple attribute', async () => {
+ it('takes pictures and clips, several at a time', async () => {
const user = userEvent.setup({ advanceTimers: vi.advanceTimersByTime });
await renderAndWait();
await openEntryEditor(user);
- // The editor has a hidden file input
- const fileInputs = document.querySelectorAll('input[type="file"][accept="image/*"]');
+ // The picker takes video as well as stills (#2341). The camera input beside
+ // it stays image-only: `capture` is for taking a photo, not filming one.
+ const fileInputs = document.querySelectorAll('input[type="file"][accept="image/*,video/*"]');
expect(fileInputs.length).toBeGreaterThanOrEqual(1);
- // Should have the multiple attribute
const editorFileInput = Array.from(fileInputs).find(input => {
return input.closest('[class*="fixed"]') !== null;
});