Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/admin/sessions/new.html.haml_spec.rb')
-rw-r--r--spec/views/admin/sessions/new.html.haml_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/views/admin/sessions/new.html.haml_spec.rb b/spec/views/admin/sessions/new.html.haml_spec.rb
index c1f4cafce0c..c1ed8d4f4ef 100644
--- a/spec/views/admin/sessions/new.html.haml_spec.rb
+++ b/spec/views/admin/sessions/new.html.haml_spec.rb
@@ -19,8 +19,7 @@ RSpec.describe 'admin/sessions/new.html.haml' do
it 'shows enter password form' do
render
- expect(rendered).to have_selector('[data-testid="sign-in-tab"]')
- expect(rendered).to have_css('#login-pane.active')
+ expect(rendered).to have_css('.login-box')
expect(rendered).to have_selector('[data-testid="password-field"]')
end
@@ -29,7 +28,7 @@ RSpec.describe 'admin/sessions/new.html.haml' do
render
- expect(rendered).not_to have_css('#login-pane')
+ expect(rendered).not_to have_css('.login-box')
expect(rendered).to have_content _('No authentication methods configured.')
end
end
@@ -62,7 +61,7 @@ RSpec.describe 'admin/sessions/new.html.haml' do
expect(rendered).to have_selector('[data-testid="ldap-tab"]')
expect(rendered).to have_css('.login-box#ldapmain')
- expect(rendered).to have_field('LDAP Username')
+ expect(rendered).to have_field(_('Username'))
expect(rendered).not_to have_content('No authentication methods configured')
end
@@ -72,7 +71,7 @@ RSpec.describe 'admin/sessions/new.html.haml' do
render
expect(rendered).not_to have_selector('[data-testid="ldap-tab"]')
- expect(rendered).not_to have_field('LDAP Username')
+ expect(rendered).not_to have_field(_('Username'))
expect(rendered).to have_content('No authentication methods configured')
end