tests and comments: invented names for real songs and artists the sweep found (#8209)
release / go (push) Successful in 1m57s
release / web (push) Successful in 1m8s
release / integration (push) Successful in 2m42s
release / govulncheck (push) Successful in 20s
release / android (push) Successful in 1m53s
release / Build signed APK (push) Successful in 1m43s
release / Build + push container image (push) Successful in 24s
release / go (push) Successful in 1m57s
release / web (push) Successful in 1m8s
release / integration (push) Successful in 2m42s
release / govulncheck (push) Successful in 20s
release / android (push) Successful in 1m53s
release / Build signed APK (push) Successful in 1m43s
release / Build + push container image (push) Successful in 24s
The Title Case sweep of the export found real song titles and artists in fixtures and comments: three songs from one real album, a real song in a release fixture, real artists in a tag test, a link test and a genre test, a real song as a notification example, and a count from a real folder. Each is now invented. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,8 +47,8 @@ const response: AdminMissingResponse = {
|
||||
directory: '/music/Lincoln Yard/Minutes to Noon',
|
||||
missing_since: new Date(Date.now() - 3 * DAY).toISOString(),
|
||||
tracks: [
|
||||
track('Given Up', { lastPlayed: new Date(Date.now() - 2 * DAY).toISOString() }),
|
||||
track('Bleed It Out', { removedFor: 'report', removedBy: 'alice' })
|
||||
track('Paper Wings', { lastPlayed: new Date(Date.now() - 2 * DAY).toISOString() }),
|
||||
track('Ring It Out', { removedFor: 'report', removedBy: 'alice' })
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -151,10 +151,10 @@ describe('/collection/missing', () => {
|
||||
|
||||
test('Forget asks first, then forgets the one track', async () => {
|
||||
renderWith(response);
|
||||
await fireEvent.click(screen.getByRole('button', { name: 'Forget Given Up' }));
|
||||
await fireEvent.click(screen.getByRole('button', { name: 'Forget Paper Wings' }));
|
||||
expect(forgetMissingTracks).not.toHaveBeenCalled();
|
||||
await fireEvent.click(within(screen.getByRole('dialog')).getByRole('button', { name: /confirm forget/i }));
|
||||
await waitFor(() => expect(forgetMissingTracks).toHaveBeenCalledWith(['t-Given Up']));
|
||||
await waitFor(() => expect(forgetMissingTracks).toHaveBeenCalledWith(['t-Paper Wings']));
|
||||
});
|
||||
|
||||
test('Forget all takes the whole folder', async () => {
|
||||
@@ -163,7 +163,7 @@ describe('/collection/missing', () => {
|
||||
screen.getByRole('button', { name: 'Forget the 2 tracks in /music/Lincoln Yard/Minutes to Noon' })
|
||||
);
|
||||
await fireEvent.click(within(screen.getByRole('dialog')).getByRole('button', { name: /confirm forget/i }));
|
||||
await waitFor(() => expect(forgetMissingTracks).toHaveBeenCalledWith(['t-Given Up', 't-Bleed It Out']));
|
||||
await waitFor(() => expect(forgetMissingTracks).toHaveBeenCalledWith(['t-Paper Wings', 't-Ring It Out']));
|
||||
});
|
||||
|
||||
test('Export CSV links to the whole list', () => {
|
||||
|
||||
Reference in New Issue
Block a user