fix: make daily task log header-only

This commit is contained in:
Wyndham ARR
2026-08-11 17:23:33 +08:00
parent c947230471
commit f2c1265a1c
16 changed files with 251 additions and 34 deletions

View File

@@ -32,7 +32,9 @@ class DailyPriceReviewUiContractTests(unittest.TestCase):
handler_end = self.script.index('$("#daily-price-review-body")', handler_start)
handlers = self.script[handler_start:handler_end]
self.assertIn("openDailyPriceReview(reviewTrigger.dataset.openPriceReview, true)", handlers)
self.assertGreaterEqual(handlers.count('event.target.closest("a, button")'), 2)
self.assertNotIn('$("#jobs-body").addEventListener("keydown"', handlers)
self.assertNotIn('event.target.closest("a, button")', handlers)
self.assertNotIn('closest("[data-job-id]")', handlers)
self.assertIn('id="daily-price-review-panel" aria-labelledby="daily-price-review-title" tabindex="-1"', self.html)
self.assertIn("panel.focus({ preventScroll: true });", self.script)