From 4370cf60d132a2e8565ef2ea42ac2934a1c0af41 Mon Sep 17 00:00:00 2001 From: Tom Price Date: Thu, 17 Mar 2016 18:44:03 +0000 Subject: [PATCH] And yet some more waits --- RIGS/test_functional.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RIGS/test_functional.py b/RIGS/test_functional.py index 2b47614a..62fbe157 100644 --- a/RIGS/test_functional.py +++ b/RIGS/test_functional.py @@ -218,6 +218,7 @@ class EventTest(LiveServerTestCase): form = self.browser.find_element_by_tag_name('form') # Create new person + wait.until(animation_is_finished()) add_person_button = self.browser.find_element_by_xpath( '//a[@data-target="#id_person" and contains(@href, "add")]') add_person_button.click() @@ -246,6 +247,7 @@ class EventTest(LiveServerTestCase): self.assertEqual(person1.pk, int(option.get_attribute("value"))) # Change mind and add another + wait.until(animation_is_finished()) add_person_button.click() wait.until(animation_is_finished()) @@ -302,6 +304,7 @@ class EventTest(LiveServerTestCase): '//button[@data-id="id_person"]/span').text) # Create organisation + wait.until(animation_is_finished()) add_button = self.browser.find_element_by_xpath( '//a[@data-target="#id_organisation" and contains(@href, "add")]') add_button.click()