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:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user