Commit 93d0ff63 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'qa-257-group-saml-sso-pre-req' into 'master'

Adds css classes to aid GitLab-QA tests

See merge request gitlab-org/gitlab-ee!7510
parents 73fe7c8c aa160891
......@@ -12,7 +12,7 @@
= f.label :sso_url, class: 'col-form-label col-sm-2' do
= _("Identity provider single sign on URL")
.col-sm-10
= f.text_field :sso_url, placeholder: 'e.g. https://example.com/adfs/ls', class: 'form-control'
= f.text_field :sso_url, placeholder: 'e.g. https://example.com/adfs/ls', class: 'form-control qa-identity-provider-sso-field'
.form-text.text-muted
= _('Members will be forwarded here when signing in to your group. Get this from your identity provider, where it can also be called "SSO Service Location", "SAML Token Issuance Endpoint", or "SAML 2.0/W-Federation URL".')
......@@ -20,9 +20,9 @@
= f.label :certificate_fingerprint, class: 'col-form-label col-sm-2' do
= _("Certificate fingerprint")
.col-sm-10
= f.text_field :certificate_fingerprint, placeholder: 'e.g. 0a:1b:2c:3d:00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff', class: 'form-control'
= f.text_field :certificate_fingerprint, placeholder: 'e.g. 0a:1b:2c:3d:00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff', class: 'form-control qa-certificate-fingerprint-field'
.form-text.text-muted
= _('SHA1 fingerprint of the SAML token signing certificate. Get this from your identity provider, where it can also be called "Thumbprint".')
.form-actions
= f.submit _("Save changes"), class: 'btn btn-success'
= f.submit _("Save changes"), class: 'btn btn-success qa-save-changes-button'
......@@ -25,5 +25,5 @@
.well-segment.borderless
%label= _("GitLab single sign on URL")
- user_login_url = sso_group_saml_providers_url(@group)
%div= link_to user_login_url, user_login_url
%div= link_to user_login_url, user_login_url, class: "qa-user-login-url-link"
.form-text.text-muted= _("Used by members to sign in to your group in GitLab")
......@@ -7,4 +7,4 @@
%p= _("This group allows you to sign in with your %{group_name} Single Sign-On account. This will redirect you to an external sign in page.") % { group_name: @group_name }
= saml_link _('Sign in with Single Sign-On'), @group_path, html_class: 'btn btn-success btn-block'
= saml_link _('Sign in with Single Sign-On'), @group_path, html_class: 'btn btn-success btn-block qa-saml-sso-signin-button'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment