Merge pull request #18320 from overleaf/dp-add-secondary-prompt-ui

Add secondary email form V2 (with Captcha this time)

GitOrigin-RevId: b06216a2c9cb5b3b09305a17992eca506a0047f5
This commit is contained in:
David
2024-05-27 10:22:40 +00:00
committed by Copybot
parent 5aea030184
commit 635aae7b1f
22 changed files with 837 additions and 59 deletions
@@ -18,7 +18,7 @@ describe('Add secondary email address confirmation code email', function () {
}
beforeEach(async function () {
if (!Features.hasFeature('affiliations')) {
if (!Features.hasFeature('saas')) {
this.skip()
}
@@ -39,16 +39,15 @@ describe('Add secondary email address confirmation code email', function () {
})
afterEach(function () {
if (!Features.hasFeature('affiliations')) {
if (!Features.hasFeature('saas')) {
this.skip()
}
spy.restore()
})
it('should redirect to confirm secondary email page', function () {
it('should send email with confirmation code', function () {
expect(res.response.statusCode).to.equal(200)
expect(res.body.redir).to.equal('/user/emails/confirm-secondary')
expect(confirmCode.length).to.equal(6)
})