fix refresh so checkbox works

This commit is contained in:
larssand
2026-09-08 09:32:00 +02:00
parent db87f65d97
commit 59ac227dfd
2 changed files with 20 additions and 2 deletions

View File

@@ -86,6 +86,14 @@ class DashboardTests(unittest.TestCase):
self.assertIn("/api/feedback/bulk", source)
self.assertIn(".add_many(", source)
def test_dashboard_refresh_guards_against_overlapping_calls(self):
self.assertIn("refreshInFlight", HTML)
self.assertIn("if (refreshInFlight) return;", HTML)
def test_dashboard_open_details_survive_refresh_via_toggle_listener(self):
self.assertIn("openDetailIds", HTML)
self.assertIn("addEventListener('toggle'", HTML)
def test_dashboard_has_bulk_review_bar(self):
self.assertIn('id="bulkReviewBar"', HTML)
self.assertIn('id="selectAllDeviations"', HTML)