mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user