LG-10918 Cancel option visible on OTP screen#9165
Conversation
aduth
left a comment
There was a problem hiding this comment.
I would not expect this to be specific to "Face or Touch Unlock", but rather any phone OTP confirmation stemming from the MFA selection screen. Maybe we can use MfaSetupConcern#in_multi_mfa_selection_flow? for this?
aduth
left a comment
There was a problem hiding this comment.
Can we add some test coverage for the expected behavior under these conditions?
There was a problem hiding this comment.
I hadn't necessarily expected that the "Cancel" text needed to change as part of the ticket, more the link destination. In that regard, I don't know that we need to actually update the view here, and instead look at fixing the logic of PhoneDeliveryPresenter#cancel_link to handle the scenario where someone in the multi-MFA selection flow should be returned to the MFA selection screen.
There was a problem hiding this comment.
I see. I took the title too literally. I'll work it back from the presenter instead.
507f2b4 to
2df5cc1
Compare
There was a problem hiding this comment.
We need to create an account at this point before we do mock_webauthn_setup_challenge
There was a problem hiding this comment.
sign_up_and_set_password does not need to be assigned to a user because it also creates a password
| user = sign_up_and_set_password | |
| user.password = Features::SessionHelper::VALID_PASSWORD | |
| sign_up_and_set_password |
There was a problem hiding this comment.
We don't need this line anymore
There was a problem hiding this comment.
Thank you. That's removed.
So there's a /spec/features/phone folder - should I start a new xyz_spec.rb file there specific to the new test? |
yeah, that's how I would approach it |
695d41f to
7f2a343
Compare
There was a problem hiding this comment.
I'm not expecting data to be here, should it be?
| :in_multi_mfa_selection_flow, | |
| :data | |
| :in_multi_mfa_selection_flow |
There was a problem hiding this comment.
You are correct. That's removed.
e3d62e8 to
e9dc25e
Compare
aduth
left a comment
There was a problem hiding this comment.
One question, but works well in my testing 👍
There was a problem hiding this comment.
I might wonder if we should put this in spec/features/two_factor_authentication/multiple_mfa_sign_up_spec.rb as part of the multi-MFA-during-setup test suite, rather than a new standalone file. Thoughts?
There was a problem hiding this comment.
I agree, especially if it's not likely that in the near future more tests would need to be added to that spec.

🎫 Ticket
LG-10918
🛠 Summary of changes
Modify the bottom of the Phone/Text confirmation screen so it uses the common cancel_or_back_to_options partial that is used by the other auth method confirmation views.
📜 Testing Plan