queue the whole starred list from both starred song lists

This commit is contained in:
austinried
2026-10-04 00:30:06 +00:00
parent 3affe7e049
commit 796e5e2827
6 changed files with 49 additions and 12 deletions
@@ -316,6 +316,25 @@ class LibraryHomeDaoTest {
assertEquals("cover-1", page.first().coverArt)
}
@Test
fun starredSongIdsMatchTheDisplayedOrderSoTheStartTrackIsRight() =
runTest {
val sourceId = source()
val dao = db.libraryDao()
dao.upsertSongs(
listOf(
song(sourceId, "s1", "First", starred = 100),
song(sourceId, "s2", "Second", starred = 300),
song(sourceId, "s3", "Third", starred = null),
song(sourceId, "s4", "Fourth", starred = 200),
),
)
val displayed = dao.starredSongs(sourceId).page().map { it.song.id }
assertEquals(listOf("s2", "s4", "s1"), displayed)
assertEquals(displayed, dao.starredSongIds(sourceId))
}
@Test
fun songsByGenrePagingFiltersAndJoinsAlbumCoverArt() =
runTest {