clipwright/dashboard/e2e/fixtures/media.js
pedro-bento 0040aa49da
All checks were successful
CI / dashboard-e2e (push) Successful in 1m44s
CI / unit (push) Successful in 29s
CI / backend-e2e (push) Successful in 1m17s
test/e2e-coverage (#5)
Reviewed-on: #5
Co-authored-by: pedro-bento <mail@pbento.pt>
Co-committed-by: pedro-bento <mail@pbento.pt>
2026-10-04 22:28:46 +01:00

15 lines
713 B
JavaScript

// Media used by the browser E2E specs.
//
// Nothing binary is committed: global-setup builds a tiny mp4 with ffmpeg into
// e2e/.artifacts (git-ignored) and the specs read the path from here. The file
// only has to be a real, non-empty video container — the dashboard's upload
// path reads its duration from the browser and falls back gracefully when the
// browser cannot decode the codec, so an undecodable build still exercises the
// flow.
import { fileURLToPath } from 'node:url';
import path from 'node:path';
const here = path.dirname(fileURLToPath(import.meta.url));
export const ARTIFACTS_DIR = path.join(here, '..', '.artifacts');
export const SIXTY_MP4 = path.join(ARTIFACTS_DIR, 'sixty.mp4');