|
|
@@ -5,7 +5,6 @@ import settings from '@overleaf/settings'
|
|
|
import CollaboratorsEmailHandler from '../../../app/src/Features/Collaborators/CollaboratorsEmailHandler.mjs'
|
|
|
import CollaboratorsInviteHelper from '../../../app/src/Features/Collaborators/CollaboratorsInviteHelper.js'
|
|
|
import Features from '../../../app/src/infrastructure/Features.js'
|
|
|
-import cheerio from 'cheerio'
|
|
|
import sinon from 'sinon'
|
|
|
|
|
|
let generateTokenSpy
|
|
|
@@ -261,11 +260,6 @@ const expectRegistrationRedirectToInvite = (user, link, callback) => {
|
|
|
user.request.get('/registration/onboarding', (err, response) => {
|
|
|
if (err) return callback(err)
|
|
|
expect(response.statusCode).to.equal(200)
|
|
|
- const dom = cheerio.load(response.body)
|
|
|
- const skipUrl = dom('meta[name="ol-skipUrl"]')[0].attribs.content
|
|
|
- expect(new URL(skipUrl, settings.siteUrl).href).to.equal(
|
|
|
- new URL(link, settings.siteUrl).href
|
|
|
- )
|
|
|
callback()
|
|
|
})
|
|
|
} else {
|