Merge pull request #25502 from overleaf/td-chat-open-bug

Prevent chat opening by default for new user

GitOrigin-RevId: 260050c26f6b9dee7ea52284dadb7ed00ce9eddb
This commit is contained in:
Tim Down
2025-05-13 08:08:11 +00:00
committed by Copybot
parent 8d940ad841
commit 11d964649c
2 changed files with 32 additions and 19 deletions
+11 -14
View File
@@ -36,14 +36,13 @@ describe('Project Sharing', function () {
login('user@example.com')
createProject(projectName)
// TODO(25342): re-enable
// // Add chat message
// cy.findByText('Chat').click()
// // wait for lazy loading of the chat pane
// cy.findByText('Send your first message to your collaborators')
// cy.get(
// 'textarea[placeholder="Send a message to your collaborators…"]'
// ).type('New Chat Message{enter}')
// Add chat message
cy.findByText('Chat').click()
// wait for lazy loading of the chat pane
cy.findByText('Send your first message to your collaborators')
cy.get(
'textarea[placeholder="Send a message to your collaborators…"]'
).type('New Chat Message{enter}')
// Get link sharing links
enableLinkSharing().then(
@@ -95,9 +94,8 @@ describe('Project Sharing', function () {
}
function expectChatAccess() {
// TODO(25342): re-enable
// cy.findByText('Chat').click()
// cy.findByText('New Chat Message')
cy.findByText('Chat').click()
cy.findByText('New Chat Message')
}
function expectHistoryAccess() {
@@ -111,9 +109,8 @@ describe('Project Sharing', function () {
}
function expectNoChatAccess() {
// TODO(25342): re-enable
// cy.findByText('Layout') // wait for lazy loading
// cy.findByText('Chat').should('not.exist')
cy.findByText('Layout') // wait for lazy loading
cy.findByText('Chat').should('not.exist')
}
function expectNoHistoryAccess() {