From e7496a9d8234b3a7eaef1d577b695a79bef3a219 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 17 Mar 2016 18:37:15 +0000 Subject: [PATCH] Add some more waits for animations in failing test --- RIGS/test_functional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/test_functional.py b/RIGS/test_functional.py index 9323687b..2b47614a 100644 --- a/RIGS/test_functional.py +++ b/RIGS/test_functional.py @@ -326,12 +326,12 @@ class EventTest(LiveServerTestCase): self.assertEqual(obj.pk, int(option.get_attribute("value"))) # Create venue - wait = WebDriverWait(self.browser, 10) #setup WebDriverWait to use later (to wait for animations) - wait.until(animation_is_finished()) add_button = self.browser.find_element_by_xpath( '//a[@data-target="#id_venue" and contains(@href, "add")]') + wait.until(animation_is_finished()) add_button.click() + wait.until(animation_is_finished()) modal = self.browser.find_element_by_id('modal') wait.until(animation_is_finished()) self.assertTrue(modal.is_displayed())