Example #1
0
 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))
Example #2
0
 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))
Example #3
0
    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