Revert "Collapse watchlist alternative titles"

This reverts commit 0c1b46e395.
This commit is contained in:
Dymas
2026-05-23 19:14:34 +02:00
parent 5b0f4043ed
commit bead7da60a
7 changed files with 17 additions and 58 deletions
+5 -9
View File
@@ -1746,10 +1746,8 @@ class TemplateHelperTests(unittest.TestCase):
self.assertIn("Enter sub or dub", APP.WATCHLIST_HTML)
def test_watchlist_page_shows_alternative_titles(self):
self.assertIn('class="ghost alt-toggle"', APP.WATCHLIST_HTML)
self.assertIn('class="alt-titles"', APP.WATCHLIST_HTML)
self.assertIn('Alternative titles', APP.WATCHLIST_HTML)
self.assertIn('altTitlesNode.classList.toggle("visible")', APP.WATCHLIST_HTML)
self.assertIn('class="alt-title"', APP.WATCHLIST_HTML)
self.assertIn('Alt: ${item.display_alt_titles.join(" · ")}', APP.WATCHLIST_HTML)
def test_watchlist_thumbnail_warmup_skips_repeated_attempts(self):
self.assertIn("thumbnailWarmupPending: new Set()", APP.WATCHLIST_HTML)
@@ -1759,11 +1757,9 @@ class TemplateHelperTests(unittest.TestCase):
def test_parse_allmanga_alternative_titles_extracts_english_and_synonyms(self):
html_text = """
<div class="show-more-content card-text p-0" style="">
<span class="mr-1 altnames"> ⚪ Example Show English &nbsp; </span>
<span class="mr-1 altnames"> ⚪ Sample Alias &nbsp; </span>
<span class="mr-1 altnames"> ⚪ Example Show &nbsp; </span>
</div>
<script>
{"englishTitle":"Example Show English","synonyms":["Sample Alias","Example Show"]}
</script>
"""
parsed = APP.parse_allmanga_alternative_titles(html_text, primary_title="Example Show")
self.assertEqual(parsed["english_title"], "Example Show English")