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);