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-09 16:09:31 +03:00
committed by Copybot
parent 18c68fb34a
commit 452d77cabc
8 changed files with 65 additions and 4 deletions

View File

@@ -569,6 +569,21 @@ describe('ProjectListController', function () {
}
ctx.ProjectListController.projectListPage(ctx.req, ctx.res)
})
it('should show a linked group notification via domain capture', function (ctx) {
ctx.req.session.saml = {
linkedGroup: true,
universityName: ctx.institutionName,
domainCaptureJoin: true,
}
ctx.res.render = (pageName, opts) => {
expect(opts).to.deep.include({
groupSsoSetupSuccess: true,
joinedGroupName: ctx.institutionName,
viaDomainCapture: true,
})
}
ctx.ProjectListController.projectListPage(ctx.req, ctx.res)
})
it('should show a linked another email notification', function (ctx) {
// when they request to link an email but the institution returns
// a different email