mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-08-19 12:32:34 -04:00
fix(webui): normalize Jellyfin match label
This commit is contained in:
@@ -242,9 +242,7 @@
|
||||
id={candidateProvider(candidate) || backend.toLowerCase()}
|
||||
definition={provider(candidateProvider(candidate))}
|
||||
/>
|
||||
{candidateProvider(candidate)
|
||||
? providerName(candidateProvider(candidate))
|
||||
: backend}
|
||||
{providerName(candidateProvider(candidate))}
|
||||
{#if resolution?.targetType === "local" && candidate.components?.localPreference}
|
||||
<span>· +{percent(candidate.components.localPreference)} local boost</span>
|
||||
{/if}
|
||||
|
||||
@@ -1034,7 +1034,10 @@ test("Tentative mappings sort by confidence and deep links open review", async (
|
||||
await expect(dialog.locator(".candidate-provider").filter({ hasText: "Apple Music - Gamdl" })).toBeVisible();
|
||||
await expect(dialog.getByText("MusicBrainz album")).toHaveCount(0);
|
||||
await expect(dialog.locator(".candidate-card .mapping-art > span").first()).toBeVisible();
|
||||
await expect(dialog.locator(".automatic-candidates").getByText("· +7% local boost")).toBeVisible();
|
||||
await expect(
|
||||
dialog.locator(".automatic-candidates .candidate-provider")
|
||||
.filter({ hasText: "Jellyfin · +7% local boost" }),
|
||||
).toBeVisible();
|
||||
await expect(dialog.locator(".automatic-candidates .candidate-confidence").getByText("89%")).toBeVisible();
|
||||
await expect(dialog.locator(".automatic-candidates").getByText("preference score")).toHaveCount(0);
|
||||
await dialog.getByLabel("Search local library and playable providers").fill("Kiss Me More");
|
||||
|
||||
Reference in New Issue
Block a user