Ejemplo n.º 1
0
 def test_github_autologin(self, base_url, selenium, github_user):
     sso_dashboard = SsoDashboard(base_url, selenium)
     sso_dashboard.login_with_github(github_user['email'],
                                     github_user['password'],
                                     github_user['secret_seed'])
     discourse = sso_dashboard.click_discourse()
     assert discourse.is_avatar_displayed
Ejemplo n.º 2
0
 def test_ldap_autologin(self, base_url, selenium, ldap_user):
     sso_dashboard = SsoDashboard(base_url, selenium)
     two_factor_authentication_page = sso_dashboard.login_with_ldap(ldap_user['email'], ldap_user['password'])
     passcode = conftest.passcode(ldap_user['secret_seed'])
     two_factor_authentication_page.enter_passcode(passcode)
     discourse = sso_dashboard.click_discourse(message="Attempting auto-login with Mozilla-LDAP")
     assert discourse.is_avatar_displayed
Ejemplo n.º 3
0
 def test_github_autologin(self, base_url, selenium, github_user):
     sso_dashboard = SsoDashboard(base_url, selenium)
     sso_dashboard.login_with_github(github_user['username'],
                                     github_user['password'],
                                     github_user['secret_seed'])
     discourse = sso_dashboard.click_discourse(
         message="Attempting auto-login with Github")
     assert discourse.is_avatar_displayed
Ejemplo n.º 4
0
 def test_login_sso(self, selenium, ldap, url, counter_api):
     test = SsoDashboard(selenium, url)
     two_factor_authentication = test.login_with_ldap(
         ldap['email'], ldap['password'])
     two_factor_authentication.enter_passcode(
         conftest.passcode(ldap['secret_seed'], counter_api))
     if two_factor_authentication.is_error_message_displayed:
         two_factor_authentication.enter_passcode(
             conftest.passcode(ldap['secret_seed'], counter_api))
     assert test.is_profile_icon_displayed
     test.logout()