fix(web): hide job lock status from printed reports
Build CutList image / build-and-push (push) Successful in 21s

This commit is contained in:
aj
2026-08-03 00:26:30 +00:00
parent 8e2027d81b
commit db054aa6dc
3 changed files with 12 additions and 2 deletions
+9
View File
@@ -20,6 +20,15 @@ class JobResultsActionsTests(unittest.TestCase):
self.assertIn('@onclick="LockJob"', action_row)
self.assertIn("Lock Job", action_row)
def test_print_report_hides_job_lock_status(self) -> None:
markup = JOB_EDITOR.read_text()
report_css = (REPO_ROOT / "CutList.Web/wwwroot/css/report.css").read_text()
self.assertIn('class="alert alert-warning d-flex justify-content-between align-items-center mb-3 print-screen-only"', markup)
self.assertIn('<span class="badge bg-success print-screen-only">', markup)
self.assertIn(".print-screen-only", report_css)
self.assertIn("display: none !important;", report_css)
if __name__ == "__main__":
unittest.main()