Skip to content
Merged
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
8 changes: 4 additions & 4 deletions spec/features/idv/in_person_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
)

# signing in again before completing in-person proofing at a post office
sign_in_and_2fa_user(user)
complete_doc_auth_steps_before_welcome_step
Capybara.reset_session!
sign_in_live_with_2fa(user)
expect(page).to have_current_path(idv_in_person_ready_to_verify_path)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IIRC they should only see the "ready to verify" screen if they're going through IdV again, such as through a partner request. Would that not be reset via reset_session! ? 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is after they've registered but before they've visited the Post Office, so they still have a pending enrollment. In that case, we expect them to see the 'ready to verify' screen

Copy link
Copy Markdown
Contributor

@aduth aduth May 24, 2023

Choose a reason for hiding this comment

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

Even when signing in from the root sign-in page, not associated with a specific service provider IdV request? How do they manage account settings then?

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.

This currently matches the behavior for password reset of GPO pending:

  1. Users signing in for auth only get redirected to the SP
  2. Users signing in for IdV get the ready to verify page
  3. Users signing in without an SP get the ready to verify page

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.

This does seems like a good point though, @aduth. Unlike the password reset or GPO page, the ready to verify page does not include a link back to the profile.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we created LG-10119 to address this!

end
end
Expand Down Expand Up @@ -240,8 +240,8 @@
)

# signing in again before completing in-person proofing at a post office
sign_in_and_2fa_user(user)
complete_doc_auth_steps_before_welcome_step
Capybara.reset_session!
sign_in_live_with_2fa(user)
expect(page).to have_current_path(idv_in_person_ready_to_verify_path)

# confirm that user cannot visit other IdV pages before completing in-person proofing
Expand Down