Merge pull request #27894 from overleaf/ii-domain-capture-join-button

[web] Domain capture join button

GitOrigin-RevId: aec6033f6776e9384c77fe0ef609c65b13a90f87
This commit is contained in:
Jessica Lawshe
2025-08-20 08:06:21 +00:00
committed by Copybot
parent 1aef3acca9
commit 2389674cca
6 changed files with 24 additions and 15 deletions
@@ -600,11 +600,8 @@ describe('ProjectController', function () {
.withArgs(this.req, this.res, 'domain-capture-redirect')
.resolves({ variant: 'enabled' })
this.Modules.promises.hooks.fire
.withArgs(
'findDomainCaptureAndManagedUsersGroupUserShouldBePartOf',
this.user._id
)
.resolves([{ _id: new ObjectId() }])
.withArgs('findDomainCaptureGroupUserCouldBePartOf', this.user._id)
.resolves([{ _id: new ObjectId(), managedUsersEnabled: true }])
this.res.redirect = url => {
url.should.equal('/domain-capture')
done()
@@ -500,11 +500,8 @@ describe('ProjectListController', function () {
.withArgs(ctx.req, ctx.res, 'domain-capture-redirect')
.resolves({ variant: 'enabled' })
ctx.Modules.promises.hooks.fire
.withArgs(
'findDomainCaptureAndManagedUsersGroupUserShouldBePartOf',
ctx.user._id
)
.resolves([{ _id: new ObjectId() }])
.withArgs('findDomainCaptureGroupUserCouldBePartOf', ctx.user._id)
.resolves([{ _id: new ObjectId(), managedUsersEnabled: true }])
ctx.res.redirect = url => {
url.should.equal('/domain-capture')
resolve()