Skip to content

Commit

Permalink
changelog: Internal, In-person proofing, fix specs (#11314)
Browse files Browse the repository at this point in the history
  • Loading branch information
gina-yamada authored Oct 4, 2024
1 parent d86199b commit a2dc450
Showing 1 changed file with 85 additions and 89 deletions.
174 changes: 85 additions & 89 deletions spec/views/idv/how_to_verify/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,49 +17,47 @@
render
end

context 'renders the show template with' do
it('a step indicator with Getting started as the current step') do
expect(view.content_for(:pre_flash_content)).to have_css(
'.step-indicator__step--current',
text: t('step_indicator.flows.idv.getting_started'),
)
end

it 'a title' do
expect(rendered).to have_content(t('doc_auth.headings.how_to_verify'))
end

it 'two options for verifying your identity' do
expect(rendered).to have_content(t('doc_auth.headings.verify_online'))
expect(rendered).to have_content(t('doc_auth.headings.verify_at_post_office'))
end

it 'a button for remote and ipp' do
expect(rendered).to have_button(t('forms.buttons.continue_remote'))
expect(rendered).to have_button(t('forms.buttons.continue_ipp'))
end

it 'a troubleshooting section' do
expect(rendered).to have_content(
t('doc_auth.info.how_to_verify_troubleshooting_options_header'),
)
expect(rendered).to have_link(t('doc_auth.info.verify_online_link_text'))
expect(rendered).to have_link(t('doc_auth.info.verify_at_post_office_link_text'))
end

it 'a cancel link' do
expect(rendered).to have_link(t('links.cancel'))
end

it 'non-selfie specific content' do
expect(rendered).to have_content(t('doc_auth.info.how_to_verify'))
expect(rendered).not_to have_content(t('doc_auth.tips.mobile_phone_required'))
expect(rendered).to have_content(t('doc_auth.headings.verify_online'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_instruction'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_description'))
expect(rendered).to have_content(t('doc_auth.info.verify_at_post_office_instruction'))
expect(rendered).to have_content(t('doc_auth.info.verify_at_post_office_description'))
end
it 'renders a step indicator with Getting started as the current step' do
expect(view.content_for(:pre_flash_content)).to have_css(
'.step-indicator__step--current',
text: t('step_indicator.flows.idv.getting_started'),
)
end

it 'renders a title' do
expect(rendered).to have_content(t('doc_auth.headings.how_to_verify'))
end

it 'renders two options for verifying your identity' do
expect(rendered).to have_content(t('doc_auth.headings.verify_online'))
expect(rendered).to have_content(t('doc_auth.headings.verify_at_post_office'))
end

it 'renders a button for remote and ipp' do
expect(rendered).to have_button(t('forms.buttons.continue_remote'))
expect(rendered).to have_button(t('forms.buttons.continue_ipp'))
end

it 'renders a troubleshooting section' do
expect(rendered).to have_content(
t('doc_auth.info.how_to_verify_troubleshooting_options_header'),
)
expect(rendered).to have_link(t('doc_auth.info.verify_online_link_text'))
expect(rendered).to have_link(t('doc_auth.info.verify_at_post_office_link_text'))
end

it 'renders a cancel link' do
expect(rendered).to have_link(t('links.cancel'))
end

it 'renders non-selfie specific content' do
expect(rendered).to have_content(t('doc_auth.info.how_to_verify'))
expect(rendered).not_to have_content(t('doc_auth.tips.mobile_phone_required'))
expect(rendered).to have_content(t('doc_auth.headings.verify_online'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_instruction'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_description'))
expect(rendered).to have_content(t('doc_auth.info.verify_at_post_office_instruction'))
expect(rendered).to have_content(t('doc_auth.info.verify_at_post_office_description'))
end
end

Expand All @@ -71,52 +69,50 @@
render
end

context 'renders the show template with' do
it('a step indicator with Getting started as the current step') do
expect(view.content_for(:pre_flash_content)).to have_css(
'.step-indicator__step--current',
text: t('step_indicator.flows.idv.getting_started'),
)
end

it 'a title' do
expect(rendered).to have_content(t('doc_auth.headings.how_to_verify'))
end

it 'two options for verifying your identity' do
expect(rendered).to have_content(t('doc_auth.headings.verify_online_selfie'))
expect(rendered).to have_content(t('doc_auth.headings.verify_at_post_office'))
end

it 'a button for remote and ipp' do
expect(rendered).to have_button(t('forms.buttons.continue_remote_selfie'))
expect(rendered).to have_button(t('forms.buttons.continue_ipp'))
end

it 'a troubleshooting section' do
expect(rendered).to have_content(
t('doc_auth.info.how_to_verify_troubleshooting_options_header'),
)
expect(rendered).to have_link(t('doc_auth.info.verify_online_link_text'))
expect(rendered).to have_link(t('doc_auth.info.verify_at_post_office_link_text'))
end

it 'a cancel link' do
expect(rendered).to have_link(t('links.cancel'))
end

it 'selfie specific content' do
expect(rendered).to have_content(t('doc_auth.info.how_to_verify_selfie'))
expect(rendered).to have_content(t('doc_auth.tips.mobile_phone_required'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_instruction_selfie'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_description_selfie'))
expect(rendered).to have_content(
t('doc_auth.info.verify_at_post_office_instruction_selfie'),
)
expect(rendered).to have_content(
t('doc_auth.info.verify_at_post_office_description_selfie'),
)
end
it 'renders a step indicator with Getting started as the current step' do
expect(view.content_for(:pre_flash_content)).to have_css(
'.step-indicator__step--current',
text: t('step_indicator.flows.idv.getting_started'),
)
end

it 'renders a title' do
expect(rendered).to have_content(t('doc_auth.headings.how_to_verify'))
end

it 'renders two options for verifying your identity' do
expect(rendered).to have_content(t('doc_auth.headings.verify_online_selfie'))
expect(rendered).to have_content(t('doc_auth.headings.verify_at_post_office'))
end

it 'renders a button for remote and ipp' do
expect(rendered).to have_button(t('forms.buttons.continue_remote_selfie'))
expect(rendered).to have_button(t('forms.buttons.continue_ipp'))
end

it 'renders a troubleshooting section' do
expect(rendered).to have_content(
t('doc_auth.info.how_to_verify_troubleshooting_options_header'),
)
expect(rendered).to have_link(t('doc_auth.info.verify_online_link_text'))
expect(rendered).to have_link(t('doc_auth.info.verify_at_post_office_link_text'))
end

it 'renders a cancel link' do
expect(rendered).to have_link(t('links.cancel'))
end

it 'renders selfie specific content' do
expect(rendered).to have_content(t('doc_auth.info.how_to_verify_selfie'))
expect(rendered).to have_content(t('doc_auth.tips.mobile_phone_required'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_instruction_selfie'))
expect(rendered).to have_content(t('doc_auth.info.verify_online_description_selfie'))
expect(rendered).to have_content(
t('doc_auth.info.verify_at_post_office_instruction_selfie'),
)
expect(rendered).to have_content(
t('doc_auth.info.verify_at_post_office_description_selfie'),
)
end
end
end

0 comments on commit a2dc450

Please sign in to comment.