test: add ascii tree diagram to top-level album e2e test

This commit is contained in:
Deluan 2026-05-03 10:43:15 -04:00
parent 8fd03d9d86
commit d2456a3268

View File

@ -121,6 +121,14 @@ var _ = Describe("Album artwork resolution", func() {
// Reproduces https://github.com/navidrome/navidrome/issues/5456
When("a top-level multi-disc album has cover.jpg at the album root and per-disc folder.jpg", func() {
// Album/ (top-level folder, Path=".")
// ├── CD1/
// │ ├── 01 - Track.mp3
// │ └── folder.jpg
// ├── CD2/
// │ ├── 01 - Track.mp3
// │ └── folder.jpg
// └── cover.jpg ← should win (album-root)
It("prefers the album-root cover.jpg", func() {
conf.Server.CoverArtPriority = defaultCoverPriority
setLayout(fstest.MapFS{