Skip to content

Conversation

@mdiarra3
Copy link
Contributor

🎫 Ticket

Link to the relevant ticket:
LG-16907

🛠 Summary of changes

Updates the cancel link for select email

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Sign in with OIDC not linked
  • change email
  • click add email
  • Cancel - Be directed back to sign up completed url
  • User signs in and goes to connected accounts
  • click change email for a connected account
  • click on add email
  • cancel email,
  • be redirected back to cancel page

@mdiarra3 mdiarra3 requested a review from a team November 17, 2025 21:37
expect(rendered).to have_link(
t('account.index.email_add'),
href: add_email_path(in_select_email_flow: true),
href: add_email_path(in_select_email_flow: true, identity_id: @identity.id),
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to test the logic added in cancel_link, if not already covered elsewhere, by testing the conditions when @identity.id is present vs. nil.

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.

4 participants