test: invented artists, albums and MusicBrainz ids in place of real ones
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Test data and example comments named real artists, records and songs, and carried real MusicBrainz ids. One mapping swaps them for invented ones throughout (Fields of Ontario, Plastic Apes, Marlo Davies, ...), keeping what each case tests: sort order, index letter, escaping, title keys, artist-prefix stripping. A test username is no longer the operator's name. The cover-art and Last.fm connection checks still query real releases; they reach live services and need something that exists there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,9 +59,9 @@ import {
|
||||
|
||||
function track(): TrackRef {
|
||||
return makeTrack({
|
||||
title: 'So What',
|
||||
album_id: 'xyz', album_title: 'Kind of Blue',
|
||||
artist_id: 'md', artist_name: 'Miles Davis',
|
||||
title: 'So Then',
|
||||
album_id: 'xyz', album_title: 'Kind of Grey',
|
||||
artist_id: 'md', artist_name: 'Marlo Davies',
|
||||
duration_sec: 545
|
||||
});
|
||||
}
|
||||
@@ -94,10 +94,10 @@ afterEach(() => vi.clearAllMocks());
|
||||
describe('PlayerBar', () => {
|
||||
test('renders title, artist, and cover linked to /now-playing', () => {
|
||||
render(PlayerBar);
|
||||
expect(compact().getByText('So What')).toBeInTheDocument();
|
||||
expect(compact().getByText('So Then')).toBeInTheDocument();
|
||||
// The artist label sits under the title in compact (no link wrapper);
|
||||
// look for it as plain text.
|
||||
expect(compact().getByText('Miles Davis')).toBeInTheDocument();
|
||||
expect(compact().getByText('Marlo Davies')).toBeInTheDocument();
|
||||
// Cover + title area links to /now-playing (Spotify/YouTube Music
|
||||
// pattern). Album reachable via the album-name link inside NowPlaying.
|
||||
const cover = compact().getByRole('link', { name: /open now playing/i });
|
||||
|
||||
Reference in New Issue
Block a user