diff options
| author | sarahboyce <sarahvboyce95@gmail.com> | 2023-06-17 13:26:00 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-18 08:37:19 +0200 |
| commit | 8b062eab8edeb3206d31437ea00f96a9d6237291 (patch) | |
| tree | 6eabb00d16fa3a5efbcd095b66b6ac3956208691 | |
| parent | c914f5423785e6de6f746ac222c6222ba8829186 (diff) | |
Made SeleniumTests.test_inline_uuid_pk_add_with_popup less flaky by waiting until popup is closed.
| -rw-r--r-- | tests/admin_views/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index bbc6f731f7..b10cd1eab2 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -6149,6 +6149,7 @@ class SeleniumTests(AdminSeleniumTestCase): self.wait_for_and_switch_to_popup() self.selenium.find_element(By.ID, "id_title").send_keys("test") self.selenium.find_element(By.XPATH, '//input[@value="Save"]').click() + self.wait_until(lambda d: len(d.window_handles) == 1, 1) self.selenium.switch_to.window(self.selenium.window_handles[0]) select = Select(self.selenium.find_element(By.ID, "id_parent")) uuid_id = str(ParentWithUUIDPK.objects.first().id) |
