diff options
Diffstat (limited to 'qa/qa/page/profile/two_factor_auth.rb')
-rw-r--r-- | qa/qa/page/profile/two_factor_auth.rb | 9 |
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 |