def test_user_can_sign_in(self, base_url, marionette, dev_account, click_login, timeout): fxa = WebDriverFxA(marionette, timeout) fxa.sign_in(dev_account.email, dev_account.password) # We sometimes need to wait longer than the standard 10 seconds logged_in = Wait(marionette, timeout).until( expected.element_present(*self._fxa_logged_in_indicator_locator)) Wait(marionette, timeout).until(expected.element_displayed(logged_in))
def test_user_can_sign_in(self, fxa_account, selenium, click_login, timeout): fxa = WebDriverFxA(selenium, timeout) fxa.sign_in(fxa_account.email, fxa_account.password) # We sometimes need to wait longer than the standard 10 seconds Wait(selenium, timeout).until( EC.visibility_of_element_located( self._fxa_logged_in_indicator_locator))
def test_del(self, selenium, click_login, timeout): """ Check that the __del__ method does destroy the FxA """ account = FxATestAccount() email = account.email password = account.password # destroy account del account # try to log in fxa = WebDriverFxA(selenium) fxa.sign_in(email, password) el = Wait(selenium, timeout).until( EC.visibility_of_element_located(self._fxa_unknown_account_error_locator)) assert 'Unknown account' in el.text
def test_del(self, selenium, click_login, timeout): """ Check that the __del__ method does destroy the FxA """ account = FxATestAccount() email = account.email password = account.password # destroy account del account # try to log in fxa = WebDriverFxA(selenium) fxa.sign_in(email, password) el = Wait(selenium, timeout).until( EC.visibility_of_element_located( self._fxa_unknown_account_error_locator)) assert 'Unknown account' in el.text
def test_user_can_sign_in(self, selenium, dev_account, click_login, timeout): fxa = WebDriverFxA(selenium, timeout) fxa.sign_in(dev_account.email, dev_account.password) # We sometimes need to wait longer than the standard 10 seconds Wait(selenium, timeout).until( EC.visibility_of_element_located(self._fxa_logged_in_indicator_locator))
def test_newly_created_user_can_sign_in(self, mozwebqa): acct = FxATestAccount(base_url='https://www-dev.allizom.org').create_account() fxa = WebDriverFxA(mozwebqa) fxa.sign_in(acct.email, acct.password) WebDriverWait(mozwebqa.selenium, mozwebqa.timeout).until( lambda s: s.find_element(*self._fxa_logged_in_indicator_locator).is_displayed())
def test_existing_user_can_sign_in(self, mozwebqa): fxa = WebDriverFxA(mozwebqa) user = mozwebqa.credentials.get('default') fxa.sign_in(user['email'], user['password']) WebDriverWait(mozwebqa.selenium, mozwebqa.timeout).until( lambda s: s.find_element(*self._fxa_logged_in_indicator_locator).is_displayed())