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-19 10:18:44 -05:00
committed by Copybot
parent c1c5b0d0ce
commit a3a7b0ea18
6 changed files with 24 additions and 15 deletions
@@ -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()