in pages/desktop/base.py [0:0]
def login(self, user):
fxa = self.header.click_login()
# wait for the FxA login page to load
self.wait.until(
EC.visibility_of_element_located((By.NAME, "email")),
message=f"FxA email input field was not displayed in {self.driver.current_url}",
)
fxa.account(user)
# verifies that the AMO page was fully loaded after login
WebDriverWait(self.driver, 30).until(
EC.invisibility_of_element_located((By.CLASS_NAME, "LoadingText")),
message="AMO was not loaded properly after login.",
)
# assess that the user has been logged in
self.wait.until(
lambda _: self.logged_in,
message=f"Log in flow was not successful. URL at fail time was {self.driver.current_url}",
)