fix: changed login test selector to not break

This is just to make sure we don't try and look for an element that
doesn't exist for every user.
This commit is contained in:
Roxie Gibson 2021-01-15 10:52:21 +00:00
parent ee1cd692da
commit 89016f2347
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D

View File

@ -34,13 +34,9 @@ class BaseTester:
submit.click()
# Wait for the js elements load so we know the cookies are good.
# Waits for "Recent Items" part of sidebar which is unique when logged in
self.wait.until(
EC.visibility_of_element_located(
(
By.CSS_SELECTOR,
"#widget-6 > div:nth-child(1) > div:nth-child(1) > h3:nth-child(4)"
)
)
EC.visibility_of_element_located((By.ID, "block-civicrm-2"))
)
def logout(self):