diff options
| author | Tim Graham <timograham@gmail.com> | 2017-12-02 09:54:31 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-12-02 09:54:31 -0500 |
| commit | 7664fe275910bb31fcca2d54844bedde19fc4ed9 (patch) | |
| tree | 3b67bde82b92152654bd21a94a1a6b0652b00cff /tests/admin_views | |
| parent | 335aad5d9170b3e3807ebd35a7dd74800df03588 (diff) | |
Refs #28871 -- Fixed admin_views selenium test failure.
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 2a5ab9b55d..5bcc1942a5 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -4032,9 +4032,9 @@ class SeleniumTests(AdminSeleniumTestCase): self.assertEqual(slug2, 'option-one-here-stacked-inline') initial_select2_inputs = self.selenium.find_elements_by_class_name('select2-selection') # Inline formsets have empty/invisible forms. - # 4 visible select2 inputs and 6 hidden inputs. + # Only the 4 visible select2 inputs are initialized. num_initial_select2_inputs = len(initial_select2_inputs) - self.assertEqual(num_initial_select2_inputs, 10) + self.assertEqual(num_initial_select2_inputs, 4) # Add an inline self.selenium.find_elements_by_link_text('Add another Related prepopulated')[0].click() |
