mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user