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:
Tim Down
2025-06-23 12:25:47 +01:00
committed by Copybot
parent 6780f4cc61
commit fa0928059e
41 changed files with 94 additions and 29 deletions
@@ -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()
})
}