Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/views/users/mfa_selection/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
<%= f.submit t('forms.buttons.continue'), class: 'margin-bottom-1' %>
<% end %>

<%= render 'shared/cancel', link: @after_setup_path %>
<%= render PageFooterComponent.new do %>
<%= link_to t('mfa.skip'), @after_setup_path, method: :get %>
<% end %>

<%= javascript_packs_tag_once('webauthn-unhide') %>
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
expect(current_path).to eq account_path
end

scenario 'user can select 1 MFA methods and cancels selecting second mfa' do
scenario 'user can select 1 MFA methods and skips selecting second mfa' do
sign_in_before_2fa

expect(current_path).to eq authentication_methods_setup_path
Expand All @@ -135,7 +135,7 @@

expect(page).to have_current_path(second_mfa_setup_path)

click_link t('links.cancel')
click_link t('mfa.skip')

expect(page).to have_current_path(account_path)
end
Expand Down