Match complete tags in widget rendering test assertions

This commit is contained in:
Jason Novinger 2025-12-03 19:00:28 -06:00
parent 1923d889f5
commit e18a0f4dde

View File

@ -85,10 +85,8 @@ class FilterModifierWidgetTest(TestCase):
# Should contain modifier dropdown
self.assertIn('class="form-select modifier-select"', html)
self.assertIn('data-field="serial"', html)
self.assertIn('value="exact"', html)
self.assertIn('>Is</option>', html)
self.assertIn('value="ic"', html)
self.assertIn('>Contains</option>', html)
self.assertIn('<option value="exact" selected>Is</option>', html)
self.assertIn('<option value="ic">Contains</option>', html)
# Should contain original input
self.assertIn('type="text"', html)