From 877bb7e9c45175bfcd2129ec892c699055f92908 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 2 Dec 2026 16:59:31 -0500 Subject: [PATCH] test(web): the repeat table pressed Repeat the wrong number of times (#8300) Repeat one is two presses from off and repeat all is one; the rows had them swapped, which the deliberate-break run showed. Co-Authored-By: Claude Opus 5.5 --- web/src/lib/player/store.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/src/lib/player/store.test.ts b/web/src/lib/player/store.test.ts index 5221acc5..7a685580 100644 --- a/web/src/lib/player/store.test.ts +++ b/web/src/lib/player/store.test.ts @@ -207,11 +207,12 @@ describe('player store — shuffle + repeat + audio reports', () => { }); // A track ending: repeat one plays it again, repeat all moves on and wraps, - // and with repeat off the last track stops at its end. + // and with repeat off the last track stops at its end. cycles is how many + // presses of Repeat from off: one for all, two for one. test.each([ - ['repeat one replays the track', 1, 2, 0, 0, 'loading', 0], - ['repeat all moves on', 2, 3, 0, 1, 'loading', 0], - ['repeat all wraps at the end', 2, 2, 1, 0, 'loading', 0], + ['repeat one replays the track', 2, 2, 0, 0, 'loading', 0], + ['repeat all moves on', 1, 3, 0, 1, 'loading', 0], + ['repeat all wraps at the end', 1, 2, 1, 0, 'loading', 0], ['repeat off stops at the end', 0, 2, 1, 1, 'paused', 180] ] as const)('a track ending with %s', (_label, cycles, n, start, wantIndex, wantState, wantPos) => { playQueue(Array.from({ length: n }, (_, i) => track(String(i + 1))), start);