Merge pull request #28522 from overleaf/ii-domain-capture-create-user-notification

[web] Success message when linking to group with domain capture

GitOrigin-RevId: 2abf29b486da5043c9f207b8f1f741a3c3ee54ab
This commit is contained in:
ilkin-overleaf
2025-09-23 16:11:30 +03:00
committed by Copybot
parent 1b24774394
commit dfd6c8b007
6 changed files with 76 additions and 4 deletions
@@ -570,7 +570,25 @@ describe('ProjectListController', function () {
}
ctx.ProjectListController.projectListPage(ctx.req, ctx.res)
})
it('should show a linked group notification via domain capture', function (ctx) {
it('should show a group linked notification when domain capture enabled', function (ctx) {
ctx.req.session.saml = {
institutionEmail: ctx.institutionEmail,
linked: {
hasEntitlement: false,
universityName: ctx.institutionName,
},
domainCaptureEnabled: true,
}
ctx.res.render = (pageName, opts) => {
expect(opts.notificationsInstitution).to.deep.include({
email: ctx.institutionEmail,
institutionName: ctx.institutionName,
templateKey: 'notification_group_sso_linked',
})
}
ctx.ProjectListController.projectListPage(ctx.req, ctx.res)
})
it('should show a success notification when joining group via domain capture page', function (ctx) {
ctx.req.session.saml = {
linkedGroup: true,
universityName: ctx.institutionName,