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
21 changes: 10 additions & 11 deletions app/views/devise/two_factor_authentication/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ p.mt-tiny.mb0#2fa-description
- if reauthn?
= f.input :reauthn, as: :hidden, input_html: { value: 'true' }
.mb3
= label_tag 'otp_method',
t('devise.two_factor_authentication.otp_method.title'),
class: 'hide block bold'
label.radio.mb0.mr3
= f.radio_button :otp_method, 'sms', checked: true
span.indicator
= t('devise.two_factor_authentication.otp_method.sms')
label.radio.mb0
= f.radio_button :otp_method, 'voice'
span.indicator
= t('devise.two_factor_authentication.otp_method.voice')
fieldset.border-white
legend.hide = t('devise.two_factor_authentication.otp_method.title')
label.radio.mb0.mr3
= f.radio_button :otp_method, 'sms', checked: true
span.indicator
= t('devise.two_factor_authentication.otp_method.sms')
label.radio.mb0
= f.radio_button :otp_method, 'voice'
span.indicator
= t('devise.two_factor_authentication.otp_method.voice')
= f.button :submit, t('forms.buttons.submit.default'), class: 'btn btn-primary btn-wide'

- link = link_to(t('devise.two_factor_authentication.recovery_code_fallback.link'),
Expand Down
20 changes: 11 additions & 9 deletions app/views/devise/two_factor_authentication_setup/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ p.mt-tiny.mb0#2fa-description
= label_tag 'two_factor_setup_form[otp_method]',
t('devise.two_factor_authentication.otp_method.instruction'),
class: 'block'
label.radio.mb0.mr3
= radio_button_tag 'two_factor_setup_form[otp_method]', :sms,
checked: true
span.indicator
= t('devise.two_factor_authentication.otp_method.sms')
label.radio.mb0
= radio_button_tag 'two_factor_setup_form[otp_method]', :voice
span.indicator
= t('devise.two_factor_authentication.otp_method.voice')
fieldset.border-white
legend.hide = t('devise.two_factor_authentication.otp_method.instruction')
label.radio.mb0.mr3
= radio_button_tag 'two_factor_setup_form[otp_method]', :sms,
checked: true
span.indicator#sms-otp-description
= t('devise.two_factor_authentication.otp_method.sms')
label.radio.mb0
= radio_button_tag 'two_factor_setup_form[otp_method]', :voice
span.indicator#voice-otp-description
= t('devise.two_factor_authentication.otp_method.voice')
= f.button :submit, t('forms.buttons.send_passcode')
p.mt3.mb1.italic = t('devise.two_factor_authentication.otp_sms_disclaimer')
3 changes: 2 additions & 1 deletion app/views/idv/finance/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ p.mt-tiny.mb0 = t('idv.messages.finance.intro')
= simple_form_for(idv_finance_form, url: idv_finance_path,
html: { autocomplete: 'off', method: 'put', role: 'form' }) do |f|
= f.error_notification
.mb3.js-finance-choice-cntnr
fieldset.mb3.js-finance-choice-cntnr.border-white
legend.hide = t('idv.messages.finance.label')
= f.collection_radio_buttons(:finance_type, Idv::FinanceForm.finance_type_choices,
:first, :last, required: true, item_wrapper_class: 'mb1', item_wrapper_tag: :div) do |r|
= r.label(class: 'radio')
Expand Down
2 changes: 1 addition & 1 deletion app/views/idv/sessions/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ h1.h3.my0 = t('idv.titles.session.basic')
.mt0.mb3.pb-tiny.border-bottom.border-teal
| #{t('profile.index.ssn')}#{tooltip(t('tooltips.placeholder'))}
= f.input :ssn, label: t('idv.form.ssn'), required: true, pattern: '^\d{3}-?\d{2}-?\d{4}$',
input_html: { class: 'ssn', 'aria-labelledby': 'label-ssn', value: idv_profile_form.ssn },
input_html: { class: 'ssn', value: idv_profile_form.ssn },
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no label-ssn id on the page, so this is an invalid aria-labelledby attr

hint: content_tag(:span, t('idv.form.tin'),
class: 'mt1 h5 blue sans-serif underline hint--top',
tabindex: 0, 'aria-label': t('tooltips.placeholder'))
Expand Down
1 change: 1 addition & 0 deletions config/locales/idv/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ en:
accurate. To learn more about the information we need from you and how it’s used
to verify your identity, please see our troubleshooting page.
finance:
label: Select which type of financial information you would like to provide.
intro: >
You are not sharing account balances or transaction details, and we
will never charge any fees.
Expand Down
4 changes: 2 additions & 2 deletions spec/features/accessibility/idv_pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
expect(page).to be_accessible
end

pending 'basic info' do
scenario 'basic info' do
sign_in_and_2fa_user

visit '/idv/session'
Expand All @@ -31,7 +31,7 @@
expect(page).to be_accessible
end

pending 'finance info' do
scenario 'finance info' do
sign_in_and_2fa_user
visit idv_session_path
fill_out_idv_form_ok
Expand Down
4 changes: 2 additions & 2 deletions spec/features/accessibility/user_pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
end

describe '2FA pages' do
pending 'phone setup page' do
scenario 'phone setup page' do
sign_up_and_set_password

expect(current_path).to eq(phone_setup_path)
expect(page).to be_accessible
end

pending 'two factor auth page' do
scenario 'two factor auth page' do
user = create(:user, :signed_up)
sign_in_before_2fa(user)

Expand Down