Exemple #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
Exemple #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
Exemple #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