fix(download-history): use title for downloaded tooltip

This commit is contained in:
Will Miao
2026-04-13 20:26:40 +08:00
parent a95c518b30
commit 70cd3f4e1b
5 changed files with 77 additions and 43 deletions

View File

@@ -127,7 +127,7 @@ describe('DownloadManager version history badges', () => {
expect(items).toHaveLength(2);
expect(items[0].querySelector('.downloaded-badge')?.textContent).toContain('Downloaded');
expect(items[0].querySelector('.downloaded-info')?.textContent).toContain(
expect(items[0].querySelector('.downloaded-badge')?.getAttribute('title')).toContain(
'Previously downloaded, but it is not currently in your library.'
);
expect(items[0].querySelector('.local-badge')).toBeNull();