tests: assert the cloud fields are not rendered, not that the text is absent
This commit is contained in:
1 parent
fafaf3a15b
commit
aedb007d7b
1 file changed
+3
-3
@@ -54,9 +54,9 @@ class HealthCheckFormTests(unittest.TestCase):
|
|||||||
self.assertIn("Derived from availability", script)
|
self.assertIn("Derived from availability", script)
|
||||||
self.assertIn("Carried forward from the last saved check", script)
|
self.assertIn("Carried forward from the last saved check", script)
|
||||||
self.assertIn("placeholder", script)
|
self.assertIn("placeholder", script)
|
||||||
# The cloud key no longer asks for the cloud results in the form.
|
# The cloud key no longer renders the cloud results as form fields.
|
||||||
self.assertNotIn("Cloud health check", script)
|
self.assertNotIn('makeField("Cloud health check"', script)
|
||||||
self.assertNotIn("Provider operational", script)
|
self.assertNotIn('makeField("Provider operational"', script)
|
||||||
|
|
||||||
def test_form_can_hide_the_compatibility_grid_for_the_cloud_key(self):
|
def test_form_can_hide_the_compatibility_grid_for_the_cloud_key(self):
|
||||||
html = (ROOT / "static" / "health-check.html").read_text(encoding="utf-8")
|
html = (ROOT / "static" / "health-check.html").read_text(encoding="utf-8")
|
||||||
|
|||||||
Reference in new issue
Block a user