Skip to content

LG-9091: update consent screen for reverified accounts#7946

Merged
mdiarra3 merged 7 commits intomainfrom
LG-9091-update-consent-screen-for-reverified-accounts
Mar 8, 2023
Merged

LG-9091: update consent screen for reverified accounts#7946
mdiarra3 merged 7 commits intomainfrom
LG-9091-update-consent-screen-for-reverified-accounts

Conversation

@mdiarra3
Copy link
Contributor

@mdiarra3 mdiarra3 commented Mar 7, 2023

🎫 Ticket

LG-9091: New Consent Screen for reverified Users

🛠 Summary of changes

Add new consent screen

👀 Screenshots

If user reverifies and then goes to the completion screen they will be shown text below.
Screen Shot 2023-03-07 at 5 09 58 PM

@mdiarra3 mdiarra3 requested a review from a team March 7, 2023 22:31
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines -84 to -106
context 'when there is an active profile' do
let(:sp_session_identity) do
create(:service_provider_identity, last_consented_at: 15.days.ago, user: user)
end

before do
create(:profile, :active, verified_at: verified_at, user: user)
end

context 'when the active profile was verified after last_consented_at' do
let(:verified_at) { 5.days.ago }
it 'is true because the new verified data needs to be consented to sharing' do
expect(consent_has_expired?).to eq(true)
end
end

context 'when the active profile was verified before last_consented_at' do
let(:verified_at) { 20.days.ago }
it 'is false' do
expect(consent_has_expired?).to eq(false)
end
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

were these cases removed because they're covered by the tests below? or changed by the new behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed by the new behavior. Right now the consent expired handled both cases, but the language for a reverification should be different than when a consent expires technically.

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.

Looks great 👍 Tested locally as well.

@mdiarra3 mdiarra3 merged commit ea90d2c into main Mar 8, 2023
@mdiarra3 mdiarra3 deleted the LG-9091-update-consent-screen-for-reverified-accounts branch March 8, 2023 18:23
@jmdembe jmdembe mentioned this pull request Mar 9, 2023
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