mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 08:22:15 +00:00
And yet some more waits
This commit is contained in:
@@ -218,6 +218,7 @@ class EventTest(LiveServerTestCase):
|
|||||||
form = self.browser.find_element_by_tag_name('form')
|
form = self.browser.find_element_by_tag_name('form')
|
||||||
|
|
||||||
# Create new person
|
# Create new person
|
||||||
|
wait.until(animation_is_finished())
|
||||||
add_person_button = self.browser.find_element_by_xpath(
|
add_person_button = self.browser.find_element_by_xpath(
|
||||||
'//a[@data-target="#id_person" and contains(@href, "add")]')
|
'//a[@data-target="#id_person" and contains(@href, "add")]')
|
||||||
add_person_button.click()
|
add_person_button.click()
|
||||||
@@ -246,6 +247,7 @@ class EventTest(LiveServerTestCase):
|
|||||||
self.assertEqual(person1.pk, int(option.get_attribute("value")))
|
self.assertEqual(person1.pk, int(option.get_attribute("value")))
|
||||||
|
|
||||||
# Change mind and add another
|
# Change mind and add another
|
||||||
|
wait.until(animation_is_finished())
|
||||||
add_person_button.click()
|
add_person_button.click()
|
||||||
|
|
||||||
wait.until(animation_is_finished())
|
wait.until(animation_is_finished())
|
||||||
@@ -302,6 +304,7 @@ class EventTest(LiveServerTestCase):
|
|||||||
'//button[@data-id="id_person"]/span').text)
|
'//button[@data-id="id_person"]/span').text)
|
||||||
|
|
||||||
# Create organisation
|
# Create organisation
|
||||||
|
wait.until(animation_is_finished())
|
||||||
add_button = self.browser.find_element_by_xpath(
|
add_button = self.browser.find_element_by_xpath(
|
||||||
'//a[@data-target="#id_organisation" and contains(@href, "add")]')
|
'//a[@data-target="#id_organisation" and contains(@href, "add")]')
|
||||||
add_button.click()
|
add_button.click()
|
||||||
|
|||||||
Reference in New Issue
Block a user