Skip to content

Commit

Permalink
travis tests: Give grappelli even more time to initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Sep 13, 2016
1 parent fa453c0 commit 8750377
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nested_admin/tests/admin_widgets/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def check_fk(self, indexes):
field = self.get_field('fk', indexes)
parent = field.find_element_by_xpath('parent::*')
add_related = parent.find_element_by_css_selector('.add-related')
if self.has_grappelli:
# Grappelli can be very slow to initialize fk bindings, particularly
# when run on travis-ci
time.sleep(1)
add_related.click()
name = self.get_name_for_indexes(indexes)
with self.switch_to_popup_window():
Expand Down

0 comments on commit 8750377

Please sign in to comment.