mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
@@ -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.`
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user