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/support/helpers/user_login_helper.rb')
-rw-r--r--spec/support/helpers/user_login_helper.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/support/helpers/user_login_helper.rb b/spec/support/helpers/user_login_helper.rb
index 47e858cb68c..d8368a94ad7 100644
--- a/spec/support/helpers/user_login_helper.rb
+++ b/spec/support/helpers/user_login_helper.rb
@@ -30,4 +30,20 @@ module UserLoginHelper
def ensure_one_active_pane
expect(page).to have_selector('.tab-pane.active', count: 1)
end
+
+ def ensure_remember_me_in_tab(tab_name)
+ find_link(tab_name).click
+
+ within '.tab-pane.active' do
+ expect(page).to have_content _('Remember me')
+ end
+ end
+
+ def ensure_remember_me_not_in_tab(tab_name)
+ find_link(tab_name).click
+
+ within '.tab-pane.active' do
+ expect(page).not_to have_content _('Remember me')
+ end
+ end
end