From da01149a2aff8eb23d718d15080e8d029a50c6c2 Mon Sep 17 00:00:00 2001 From: Davide Grilli Date: Fri, 3 Jul 2026 10:58:40 +0200 Subject: [PATCH] test(display): copri l'overlay time out (video, placeholder, countdown) Nessun test component copriva ancora l'overlay introdotto con startTimeout/stopTimeout: placeholder senza video, riproduzione con src corretto, fallback a fine video, countdown e dissolvenza oltre i 30s. Stub di play/pause/load su HTMLMediaElement, non implementati da happy-dom. --- tests/component/DisplayPage.test.js | 82 +++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/tests/component/DisplayPage.test.js b/tests/component/DisplayPage.test.js index 4b8f52d..0cc6167 100644 --- a/tests/component/DisplayPage.test.js +++ b/tests/component/DisplayPage.test.js @@ -31,6 +31,12 @@ vi.stubGlobal('speechSynthesis', { getVoices: () => [] }) +// happy-dom non implementa la riproduzione media: stub di play/pause/load +// così l'overlay time out può montare il