test(web): the repeat table pressed Repeat the wrong number of times (#8300)
release / go (push) Successful in 1m52s
release / integration (push) Successful in 2m32s
release / web (push) Successful in 1m9s
release / govulncheck (push) Successful in 18s
release / android (push) Successful in 4m20s
release / Build signed APK (push) Successful in 4m50s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 26s
release / Verify release artifacts (tag releases only) (push) Skipped
release / go (push) Successful in 1m52s
release / integration (push) Successful in 2m32s
release / web (push) Successful in 1m9s
release / govulncheck (push) Successful in 18s
release / android (push) Successful in 4m20s
release / Build signed APK (push) Successful in 4m50s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 26s
release / Verify release artifacts (tag releases only) (push) Skipped
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user