mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user