diff --git a/tests/test_health_check_form.py b/tests/test_health_check_form.py index 0dbe095..15e7053 100644 --- a/tests/test_health_check_form.py +++ b/tests/test_health_check_form.py @@ -1,6 +1,7 @@ """Tests for annual health-check form content and client-side behavior.""" from pathlib import Path +import re import unittest @@ -29,6 +30,24 @@ class HealthCheckFormTests(unittest.TestCase): self.assertNotIn("next_check_due", html) self.assertIn('name="contact_info_verified"', html) + def test_the_form_sections_follow_the_agreed_order(self): + html = read_static("health-check.html") + eyebrows = re.findall(r'
([^<]+)
', html) + + # The form is renumbered, and 04 / Standards is gone (section 24.3). + self.assertEqual( + eyebrows, + [ + "01 / Schedule", + "02 / Key", + "03 / Compatibility", + "04 / External research", + "05 / Contact confirmation", + "06 / Notes", + "Review", + ], + ) + def test_form_script_covers_the_checklist_fields_and_status_values(self): script = read_static("health-check.js") for field in (