Skip to content

Sign in live in the in person happy path tests#8473

Merged
jmhooper merged 2 commits intomainfrom
jmhooper-in-person-sign-in-live
May 30, 2023
Merged

Sign in live in the in person happy path tests#8473
jmhooper merged 2 commits intomainfrom
jmhooper-in-person-sign-in-live

Conversation

@jmhooper
Copy link
Contributor

The in-person tests were using the sign_in_user helper to test that a user sees the screen with their barcode visible. This signs in with Warden which does not run through all of the before actions for signing in.

Additionally, when the in person happy path tests were signing in the user was already signed in.

This commit addresses both of the above.

@jmhooper
Copy link
Contributor Author

These tests currently fail and will not pass until #8468 is merged

@jmhooper jmhooper force-pushed the jmhooper-in-person-sign-in-live branch from 556cac5 to 2425467 Compare May 23, 2023 20:17
The in-person tests were using the `sign_in_user` helper to test that a user sees the screen with their barcode visible. This signs in with Warden which does not run through all of the before actions for signing in.

Additionally, when the in person happy path tests were signing in the user was already signed in.

This commit addresses both of the above.

[skip changelog]
@jmhooper jmhooper force-pushed the jmhooper-in-person-sign-in-live branch from 2425467 to 4e07bf6 Compare May 24, 2023 17:10
@jmhooper
Copy link
Contributor Author

I have rebased this PR and it is ready for review

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

One question, but LGTM

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
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
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
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
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
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
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!

@jmhooper jmhooper merged commit f3d5f96 into main May 30, 2023
@jmhooper jmhooper deleted the jmhooper-in-person-sign-in-live branch May 30, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants