test(player): a related video's end leaves an auto-advancing queue where it was

This commit is contained in:
2026-10-25 00:42:34 +02:00
parent b5045165c0
commit 005784e291
@@ -885,6 +885,8 @@ describe("PlayerModal — the side panel on a wide window", () => {
}); });
it("wide: a related video watched to its end is marked watched, and the queue stays put", async () => { it("wide: a related video watched to its end is marked watched, and the queue stays put", async () => {
// Auto-advance on: an end of the queue's own item would step to B.
me = { related_enabled: true, preferences: { playerAutoAdvance: "next" } } as unknown as Me;
const onState = vi.fn(); const onState = vi.fn();
const B = vid("B", 0); const B = vid("B", 0);
await playRel2(onState, [vid("A", 40), B]); await playRel2(onState, [vid("A", 40), B]);