mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #20137 from overleaf/jpa-fix-e2e
[server-pro] fix e2e tests GitOrigin-RevId: 589d23baf8bc815328f21b140f2086e135d13736
This commit is contained in:
@@ -258,8 +258,7 @@ describe('admin panel', function () {
|
||||
})
|
||||
})
|
||||
|
||||
// eslint-disable-next-line mocha/no-skipped-tests
|
||||
it.skip('restore deleted projects', () => {
|
||||
it('restore deleted projects', () => {
|
||||
login(user1)
|
||||
cy.visit('/project')
|
||||
|
||||
@@ -270,7 +269,7 @@ describe('admin panel', function () {
|
||||
|
||||
cy.log('delete project')
|
||||
findProjectRow(deletedProjectName).within(() =>
|
||||
cy.contains('Trash').click()
|
||||
cy.findByRole('button', { name: 'Trash' }).click()
|
||||
)
|
||||
cy.get('button').contains('Confirm').click()
|
||||
cy.findByText(deletedProjectName).should('not.exist')
|
||||
@@ -280,7 +279,7 @@ describe('admin panel', function () {
|
||||
cy.findByText('Trashed Projects').click()
|
||||
})
|
||||
findProjectRow(deletedProjectName).within(() =>
|
||||
cy.contains('Delete').click()
|
||||
cy.findByRole('button', { name: 'Delete' }).click()
|
||||
)
|
||||
cy.get('button').contains('Confirm').click()
|
||||
cy.findByText(deletedProjectName).should('not.exist')
|
||||
@@ -294,8 +293,8 @@ describe('admin panel', function () {
|
||||
cy.get('a').contains(deletedProjectName).click()
|
||||
|
||||
cy.log('undelete the project')
|
||||
cy.findByText('undelete').click()
|
||||
cy.findByText('undelete').should('not.exist')
|
||||
cy.findByText('Undelete').click()
|
||||
cy.findByText('Undelete').should('not.exist')
|
||||
cy.url().should('contain', `/admin/project/${projectToDeleteId}`)
|
||||
|
||||
cy.log('login as the user and verify the project is restored')
|
||||
|
||||
Reference in New Issue
Block a user