Refs #28871 -- Fixed admin_views selenium test failure.

This commit is contained in:
Tim Graham 2017-12-02 09:54:31 -05:00
parent 335aad5d91
commit 7664fe2759
1 changed files with 2 additions and 2 deletions

View File

@ -4032,9 +4032,9 @@ class SeleniumTests(AdminSeleniumTestCase):
self.assertEqual(slug2, 'option-one-here-stacked-inline') self.assertEqual(slug2, 'option-one-here-stacked-inline')
initial_select2_inputs = self.selenium.find_elements_by_class_name('select2-selection') initial_select2_inputs = self.selenium.find_elements_by_class_name('select2-selection')
# Inline formsets have empty/invisible forms. # 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) 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 # Add an inline
self.selenium.find_elements_by_link_text('Add another Related prepopulated')[0].click() self.selenium.find_elements_by_link_text('Add another Related prepopulated')[0].click()