Fix visible watchlist refresh progress fill

This commit is contained in:
Dymas
2026-08-20 12:53:14 +02:00
parent 3e95252eb4
commit 3714e9b91e
5 changed files with 9 additions and 3 deletions
+2
View File
@@ -4304,6 +4304,8 @@ class TemplateHelperTests(unittest.TestCase):
def test_watchlist_page_renders_single_refresh_progress_bar(self):
self.assertIn('class="refresh-progress" id="refreshJobStatus"', APP.WATCHLIST_HTML)
self.assertIn('class="refresh-progress-fill" id="refreshJobFill"', APP.WATCHLIST_HTML)
self.assertIn("linear-gradient(90deg, var(--accent), var(--accent-strong))", APP.WATCHLIST_HTML)
self.assertNotIn("var(--accent-2)", APP.WATCHLIST_HTML)
self.assertIn('role="progressbar"', APP.WATCHLIST_HTML)
self.assertIn("function refreshJobPercent(job)", APP.WATCHLIST_HTML)
self.assertIn('$("refreshJobFill").style.transform = `scaleX(${percent / 100})`;', APP.WATCHLIST_HTML)