qa/qa/specs/features/browser_ui/1_manage/login/log_in_with_2fa_spec.rb
# We are intentionally using the UI to enforce 2FA to exercise the flow with UI.
# Any future tests should use the API for this purpose.
We are intentionally using the UI to enforce 2FA to exercise the flow with UI.
Any future tests should use the API for this purpose.
We are intentionally using the UI to enforce 2FA to exercise the flow with UI . Any future tests should use the API for this purpose .
def enforce_two_factor_authentication_on_group(group)
        Flow::Login.while_signed_in(as: owner_user) do
          group.visit!
          Page::Group::Menu.perform(&:click_group_general_settings_item)
          Page::Group::Settings::General.perform(&:set_require_2fa_enabled)
          expect(page).to have_text(two_fa_expected_text)
          Page::Profile::TwoFactorAuth.perform(&:click_configure_it_later_button)
          expect(page).not_to have_text(two_fa_expected_text)
        end
      end
def enforce_two_factor_authentication_on_group ( group ) Flow :: Login . while_signed_in ( as : owner_user ) do group . visit! Page :: Group :: Menu . perform ( & :click_group_general_settings_item ) Page :: Group :: Settings :: General . perform ( & :set_require_2fa_enabled ) expect ( page ) . to have_text ( two_fa_expected_text ) Page :: Profile :: TwoFactorAuth . perform ( & :click_configure_it_later_button ) expect ( page ) . not_to have_text ( two_fa_expected_text ) end end
We are intentionally using the UI to enforce 2FA to exercise the flow with UI.
We are intentionally using the UI to enforce 2FA to exercise the flow with UI .
group
<not_specific>