Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

e2e: the video button's focus case runs before the one that turns the button off (#530)

Ahmed Nefzaouia64bc87142fb
diff --git a/ROADMAP.md b/ROADMAP.md
index 60c8040a..9e2ab613 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -520,6 +520,8 @@ These ship in a later version, when they're ready.
### Bugs being looked into
+- πŸ”„ The browser tests: the video button's focus case ran after the one that turns the button
+ off for the test site, and timed out in a full run ([#480](https://github.com/anefzaoui/misterdownloadmanager/issues/480)): fix in review
- πŸ”„ The video button vanishing over a hover-to-play preview (YouTube's thumbnails) before it
can be clicked ([#503](https://github.com/anefzaoui/misterdownloadmanager/issues/503)): fix in review
- πŸ”„ Add URL's **Use authorization** empty for an address with a login in Options β†’ Sites
diff --git a/tools/extension/e2e.mjs b/tools/extension/e2e.mjs
index 8cd0a030..1a79598c 100644
--- a/tools/extension/e2e.mjs
+++ b/tools/extension/e2e.mjs
@@ -1944,16 +1944,17 @@ const CASES = {
return `sent ${address.replace(LAB, "")}`;
},
- async video(t) {
- return videoButton(t.session, t.last);
- },
-
+ // Before `video`: its last step turns the button off for the lab's site in the last browser.
async videoFocus(t) {
// Headless Firefox refuses the player's fullscreen request and Tab's focus on it here.
if (t.kind === "firefox") throw new Skip("headless Firefox denies fullscreen and keyboard focus to the test page");
return videoFocus(t.session);
},
+ async video(t) {
+ return videoButton(t.session, t.last);
+ },
+
// MDM not running: the host starts it (off the screens, with the test's data folder: both
// reach it through the browser's environment) and hands the download over.
async start(t) {