Skip to content

Add a spec to ensure the liveness proofing component is removed when a user reproofs without liveness#6260

Merged
jmhooper merged 5 commits intomainfrom
jmhooper-confirm-liveness-check-component-removed
Apr 27, 2022
Merged

Add a spec to ensure the liveness proofing component is removed when a user reproofs without liveness#6260
jmhooper merged 5 commits intomainfrom
jmhooper-confirm-liveness-check-component-removed

Conversation

@jmhooper
Copy link
Contributor

We use the proofing components on a profile to ensure a user's profile has a liveness check when a liveness check is required. This commit adds a spec to ensure that a user is not marked as having a liveness check present if they reproof without liveness.

…a user reproofs without liveness

We use the proofing components on a profile to ensure a user's profile has a liveness check when a liveness check is required. This commit adds a spec to ensure that a user is not marked as having a liveness check present if they reproof without liveness.
@jmhooper
Copy link
Contributor Author

jmhooper commented Apr 27, 2022

I recommend hiding whitespace changes when reviewing this change

image

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.

👍

Comment on lines +79 to +80
user = User.find(user.id)
expect(user.active_profile.includes_liveness_check?).to be_falsy
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we have to re-find it here, as opposed to reload-ing it again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the active profile gets memoized

@jmhooper jmhooper merged commit 4295e3f into main Apr 27, 2022
@jmhooper jmhooper deleted the jmhooper-confirm-liveness-check-component-removed branch April 27, 2022 18:17
peggles2 pushed a commit that referenced this pull request May 3, 2022
…a user reproofs without liveness (#6260)

We use the proofing components on a profile to ensure a user's profile has a liveness check when a liveness check is required. This commit adds a spec to ensure that a user is not marked as having a liveness check present if they reproof without liveness.

changelog: Internal, Testing, A test was added to cover an edge case when re-proofing without facial matching
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