mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #20137 from overleaf/jpa-fix-e2e
[server-pro] fix e2e tests GitOrigin-RevId: 589d23baf8bc815328f21b140f2086e135d13736
This commit is contained in:
parent
d655cb129a
commit
aa45f778c0
5 changed files with 9 additions and 11 deletions
|
@ -258,8 +258,7 @@ describe('admin panel', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// eslint-disable-next-line mocha/no-skipped-tests
|
it('restore deleted projects', () => {
|
||||||
it.skip('restore deleted projects', () => {
|
|
||||||
login(user1)
|
login(user1)
|
||||||
cy.visit('/project')
|
cy.visit('/project')
|
||||||
|
|
||||||
|
@ -270,7 +269,7 @@ describe('admin panel', function () {
|
||||||
|
|
||||||
cy.log('delete project')
|
cy.log('delete project')
|
||||||
findProjectRow(deletedProjectName).within(() =>
|
findProjectRow(deletedProjectName).within(() =>
|
||||||
cy.contains('Trash').click()
|
cy.findByRole('button', { name: 'Trash' }).click()
|
||||||
)
|
)
|
||||||
cy.get('button').contains('Confirm').click()
|
cy.get('button').contains('Confirm').click()
|
||||||
cy.findByText(deletedProjectName).should('not.exist')
|
cy.findByText(deletedProjectName).should('not.exist')
|
||||||
|
@ -280,7 +279,7 @@ describe('admin panel', function () {
|
||||||
cy.findByText('Trashed Projects').click()
|
cy.findByText('Trashed Projects').click()
|
||||||
})
|
})
|
||||||
findProjectRow(deletedProjectName).within(() =>
|
findProjectRow(deletedProjectName).within(() =>
|
||||||
cy.contains('Delete').click()
|
cy.findByRole('button', { name: 'Delete' }).click()
|
||||||
)
|
)
|
||||||
cy.get('button').contains('Confirm').click()
|
cy.get('button').contains('Confirm').click()
|
||||||
cy.findByText(deletedProjectName).should('not.exist')
|
cy.findByText(deletedProjectName).should('not.exist')
|
||||||
|
@ -294,8 +293,8 @@ describe('admin panel', function () {
|
||||||
cy.get('a').contains(deletedProjectName).click()
|
cy.get('a').contains(deletedProjectName).click()
|
||||||
|
|
||||||
cy.log('undelete the project')
|
cy.log('undelete the project')
|
||||||
cy.findByText('undelete').click()
|
cy.findByText('Undelete').click()
|
||||||
cy.findByText('undelete').should('not.exist')
|
cy.findByText('Undelete').should('not.exist')
|
||||||
cy.url().should('contain', `/admin/project/${projectToDeleteId}`)
|
cy.url().should('contain', `/admin/project/${projectToDeleteId}`)
|
||||||
|
|
||||||
cy.log('login as the user and verify the project is restored')
|
cy.log('login as the user and verify the project is restored')
|
||||||
|
|
|
@ -296,8 +296,7 @@ describe('Project Sharing', function () {
|
||||||
expectRestrictedReadOnlyAccess()
|
expectRestrictedReadOnlyAccess()
|
||||||
})
|
})
|
||||||
|
|
||||||
// eslint-disable-next-line mocha/no-skipped-tests
|
it('should grant write access with write link', () => {
|
||||||
it.skip('should grant write access with write link', () => {
|
|
||||||
cy.visit(linkSharingReadAndWrite)
|
cy.visit(linkSharingReadAndWrite)
|
||||||
expectReadAndWriteAccess()
|
expectReadAndWriteAccess()
|
||||||
expectEditAuthoredAs('Anonymous')
|
expectEditAuthoredAs('Anonymous')
|
||||||
|
|
|
@ -62,7 +62,7 @@ const ChatPane = React.memo(function ChatPane() {
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!user?.id) {
|
if (!user) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
if (!chatOpenedOnce) {
|
if (!chatOpenedOnce) {
|
||||||
|
|
|
@ -61,7 +61,7 @@ MessageList.propTypes = {
|
||||||
})
|
})
|
||||||
).isRequired,
|
).isRequired,
|
||||||
resetUnreadMessages: PropTypes.func.isRequired,
|
resetUnreadMessages: PropTypes.func.isRequired,
|
||||||
userId: PropTypes.string.isRequired,
|
userId: PropTypes.string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default MessageList
|
export default MessageList
|
||||||
|
|
|
@ -52,7 +52,7 @@ Message.propTypes = {
|
||||||
first_name: PropTypes.string,
|
first_name: PropTypes.string,
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
userId: PropTypes.string.isRequired,
|
userId: PropTypes.string,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Message
|
export default Message
|
||||||
|
|
Loading…
Reference in a new issue