test(video): update gallery accept selector + complete fileService mocks

The gallery upload input now accepts image/*,video/* — update the two JourneyDetailPage selectors that matched the old value. The files/journey e2e suites mock fileService and were missing the new MAX_VIDEO_SIZE / isVideoExtension / isVideoMime exports, which broke module load.
This commit is contained in:
Maurice
2026-06-30 12:00:46 +02:00
committed by Maurice
parent 20c1858b23
commit 4af35b162e
3 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -1813,7 +1813,7 @@ describe('JourneyDetailPage', () => {
expect(uploadBtn).toBeTruthy();
// Verify the hidden file input exists in the gallery view
const fileInput = document.querySelector('input[type="file"][accept="image/*"]') as HTMLInputElement;
const fileInput = document.querySelector('input[type="file"][accept="image/*,video/*"]') as HTMLInputElement;
expect(fileInput).toBeTruthy();
});
});
@@ -3314,7 +3314,7 @@ describe('JourneyDetailPage', () => {
});
// Find the hidden file input in the gallery view
const fileInput = document.querySelector('input[type="file"][accept="image/*"][multiple]') as HTMLInputElement;
const fileInput = document.querySelector('input[type="file"][accept="image/*,video/*"][multiple]') as HTMLInputElement;
expect(fileInput).toBeTruthy();
// Simulate file selection