summaryrefslogtreecommitdiff
path: root/qa/qa/page/profile/two_factor_auth.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /qa/qa/page/profile/two_factor_auth.rb
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
downloadgitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'qa/qa/page/profile/two_factor_auth.rb')
-rw-r--r--qa/qa/page/profile/two_factor_auth.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/qa/qa/page/profile/two_factor_auth.rb b/qa/qa/page/profile/two_factor_auth.rb
index b5a4d04b377..6794825769a 100644
--- a/qa/qa/page/profile/two_factor_auth.rb
+++ b/qa/qa/page/profile/two_factor_auth.rb
@@ -16,6 +16,8 @@ module QA
view 'app/views/profiles/two_factor_auths/_codes.html.haml' do
element :proceed_button
+ element :codes_content
+ element :code_content
end
def click_configure_it_later_button
@@ -34,6 +36,13 @@ module QA
click_element :register_2fa_app_button
end
+ def recovery_codes
+ code_elements = within_element(:codes_content) do
+ all_elements(:code_content, minimum: 1)
+ end
+ code_elements.map { |code_content| code_content.text }
+ end
+
def click_proceed_button
click_element :proceed_button
end