Merge pull request #28126 from overleaf/ii-domain-capture-join-success-message

[web] Notification message for joining group via domain capture

GitOrigin-RevId: 67ef924b2d80afb5e1de75fb6aab147263c0f33c
This commit is contained in:
ilkin-overleaf
2025-09-10 08:06:07 +00:00
committed by Copybot
parent 18c68fb34a
commit 452d77cabc
8 changed files with 65 additions and 4 deletions
@@ -1045,5 +1045,17 @@ describe('<UserNotifications />', function () {
screen.queryByText('Success! Single sign-on is all set up for you.')
).to.be.null
})
it('shows group SSO linked notification when joining via domain capture', function () {
const groupName = 'Group Name'
window.metaAttributesCache.set('ol-groupSsoSetupSuccess', true)
window.metaAttributesCache.set('ol-viaDomainCapture', true)
window.metaAttributesCache.set('ol-joinedGroupName', groupName)
renderWithinProjectListProvider(GroupSsoSetupSuccess)
const alert = screen.getByRole('alert')
expect(alert.textContent).to.contain(
`Success! You’ve joined the ${groupName} group subscription. Your group has SSO enabled so you can log in without needing to remember a password.`
)
})
})
})