mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 16:19:02 +02:00
Merge pull request #26244 from overleaf/td-limit-browser-translate-ide
Prevent browser translation of stuff that shouldn't be translated in IDE page GitOrigin-RevId: 96a75b51c3c8efc4cbcec7eb17d9e331a03e2c96
This commit is contained in:
@@ -200,7 +200,7 @@ const expectInvitePage = (user, link, callback) => {
|
||||
tryFollowInviteLink(user, link, (err, response, body) => {
|
||||
expect(err).not.to.exist
|
||||
expect(response.statusCode).to.equal(200)
|
||||
expect(body).to.match(/<title>Project Invite - .*<\/title>/)
|
||||
expect(body).to.match(/<title[^>]*>Project Invite - .*<\/title>/)
|
||||
callback()
|
||||
})
|
||||
}
|
||||
@@ -210,7 +210,7 @@ const expectInvalidInvitePage = (user, link, callback) => {
|
||||
tryFollowInviteLink(user, link, (err, response, body) => {
|
||||
expect(err).not.to.exist
|
||||
expect(response.statusCode).to.equal(404)
|
||||
expect(body).to.match(/<title>Invalid Invite - .*<\/title>/)
|
||||
expect(body).to.match(/<title[^>]*>Invalid Invite - .*<\/title>/)
|
||||
callback()
|
||||
})
|
||||
}
|
||||
@@ -237,7 +237,9 @@ const expectLoginPage = (user, callback) => {
|
||||
tryFollowLoginLink(user, '/login', (err, response, body) => {
|
||||
expect(err).not.to.exist
|
||||
expect(response.statusCode).to.equal(200)
|
||||
expect(body).to.match(/<title>(Login|Log in to Overleaf) - .*<\/title>/)
|
||||
expect(body).to.match(
|
||||
/<title[^>]*>(Login|Log in to Overleaf) - .*<\/title>/
|
||||
)
|
||||
callback()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user