We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe8abc3 commit 7c10a60Copy full SHA for 7c10a60
tests/runtests.py
@@ -322,7 +322,14 @@ def test_forgot_password(self):
322
"""Test forgot password to ensure that postfix is working properly."""
323
324
self.logout()
325
- time.sleep(0.3)
+ try:
326
+ WebDriverWait(self.base_driver, 3).until(
327
+ EC.text_to_be_present_in_element(
328
+ (By.CSS_SELECTOR, ".title-wrapper h1"), "Logged out"
329
+ )
330
331
+ except TimeoutException:
332
+ self.fail("Logout failed.")
333
self.open("/accounts/password/reset/")
334
self.find_element(By.NAME, "email").send_keys("admin@example.com")
335
self.find_element(By.CSS_SELECTOR, 'button[type="submit"]').click()
0 commit comments