Skip to content

Ab address verify views#1227

Merged
el-mapache merged 1 commit intomasterfrom
ab-address-verify-views
Mar 23, 2017
Merged

Ab address verify views#1227
el-mapache merged 1 commit intomasterfrom
ab-address-verify-views

Conversation

@el-mapache
Copy link
Copy Markdown
Contributor

@el-mapache el-mapache commented Mar 15, 2017

Views for LOA3 address/identity verification. The views are hooked up to the new controllers @pkarman set up in , but the additional OTP code entry hasn't been implemented yet.

Screenshots

screen shot 2017-03-17 at 11 48 25 am

screen shot 2017-03-17 at 11 48 58 am

screen shot 2017-03-17 at 11 49 04 am

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.

Why remove this test?

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.

It was duplicated on line 134

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.

debugger statement left in :)

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.

whoops! Good catch 😄

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.

nice!

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.

I don't think we need a newline here

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.

I don't think we need a newline here. Usually, I do 3 phases: 1. setup 2. exercise 3. expectations

So signing in the user and setting the session can be phase 1

visit verify route, filling out form, clicking continue, cancel stuff can be phase 2

and then expectation is phase 3

One newline between each phase for clarity. otherwise, no newlines (generally...there are always exceptions, of course)

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.

I personally don't like having the first five lines of the code all jammed up there with no spaces, but I am totally willing to adhere to the conventions we already have.

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.

why not just look for current_path to eq profile_path ?

Copy link
Copy Markdown
Contributor Author

@el-mapache el-mapache Mar 20, 2017

Choose a reason for hiding this comment

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

Running the specs in a JS context changes the entire url (from example.com to a port number). Maybe we can just match on the path?

edit: we can

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.

no matter what the entire URL is, expect(current_path).to eq profile_path should work

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.

possible to look for it within a different div for more exactness? eg:

within('.cool-div') do
  click_on t('idv.buttons.cancel')
end

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.

definitely, I didn't know that even existed.

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.

cool, I think that would be preferable to the comments here

@el-mapache el-mapache force-pushed the ab-address-verify-views branch from bd32684 to 8a53f67 Compare March 20, 2017 20:00
@el-mapache
Copy link
Copy Markdown
Contributor Author

@jessieay I think I addressed your feedback. I must have amended at some point with the new commit, sorry about that!

Copy link
Copy Markdown
Contributor

@jessieay jessieay left a comment

Choose a reason for hiding this comment

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

Updates look good! I am not seeing a linked github issue? Is there one so I can confirm that this is doing what the ticket is asking for?

@el-mapache
Copy link
Copy Markdown
Contributor Author

@jessieay hooray! should be referenced now.

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.

what if there is no service provider present?

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 flow only applies to identity verification, so I think there always is?

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.

ahh ok. can I get a quick confirm from @pkarman or someone else? I know that I have gone through the LOA3 flow without an SP several times, but I am a developer so I know that my behavior is probably abnormal

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.

It's possible to hit the /verify endpoint w/o having been referred by a SP. You can log in directly afaik.

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.

I actually did not know that was possible. Should I have a fallback to APP_NAME if sp_name is nil, then?

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 the magic ✨ of code review!

The text reads:

To protect you from identity fraud, you can't use your account at %{sp_name} until you activate it by entering a confirmation code.

Would this make sense with an sp name of login.gov ? Maybe! I'd double check with our designer folks.

Copy link
Copy Markdown
Contributor Author

@el-mapache el-mapache Mar 22, 2017

Choose a reason for hiding this comment

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

I don't think it would, since the user can definitely use login.gov without having their identity verified, right? Does it make sense to have this route only accessible during LOA3 verification? Or do we want to be able to verify a user's identity directly using login.gov in the future?

In that case, I think the copy will probably need to change somewhat.

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.

For now, I think the easiest route would be to show different copy depending on whether an sp is present or not. Check out DecoratedSession and how we are using that for rendering different content for sp and non-sp sessions. (basically, you define the same method on ServiceProviderSessionDecorator and SessionDecorator and have them return different content)

let me know if you'd like to pair on this! should be pretty fast and then we can get this merged :) :) 🌈

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.

word, I am just writing some specs for this, hope to push it up shortly.

Copy link
Copy Markdown
Contributor

@jessieay jessieay left a comment

Choose a reason for hiding this comment

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

One final comment about copy that seems very sp-specific. Otherwise, let's :shipit:

@pkarman
Copy link
Copy Markdown
Contributor

pkarman commented Mar 22, 2017

I suspect that a rebase and squash might change this slightly. Happy to re-view after the that.

**Why**: To keep up with changes to our designs
@jessieay jessieay force-pushed the ab-address-verify-views branch from 7045852 to 27a0f48 Compare March 22, 2017 22:34
Copy link
Copy Markdown
Contributor

@jessieay jessieay left a comment

Choose a reason for hiding this comment

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

Confirmed locally that the views look good!

@el-mapache
Copy link
Copy Markdown
Contributor Author

thanks @jessieay!!

@el-mapache el-mapache merged commit f2b1412 into master Mar 23, 2017
@el-mapache el-mapache deleted the ab-address-verify-views branch March 23, 2017 11:38
pkarman pushed a commit that referenced this pull request Mar 29, 2017
**Why**: To keep up with changes to our designs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants