mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #20235 from overleaf/mj-disable-sp-history-debugging
[web] Hide history debugging admin tab for Server Pro GitOrigin-RevId: afba1dd0b2bc3d76b4931058f588ae4532ca9609
This commit is contained in:
parent
5d57571e96
commit
1a8cf9b87d
1 changed files with 16 additions and 0 deletions
|
@ -214,6 +214,7 @@ describe('admin panel', function () {
|
|||
cy.get('[role="tab"]').each((el, index) => {
|
||||
cy.wrap(el).findByText(tabs[index]).click()
|
||||
})
|
||||
cy.get('[role="tab"]').should('have.length', tabs.length)
|
||||
})
|
||||
|
||||
describe('user info tab', () => {
|
||||
|
@ -258,6 +259,21 @@ describe('admin panel', function () {
|
|||
})
|
||||
})
|
||||
|
||||
describe('project page', () => {
|
||||
beforeEach(() => {
|
||||
login(admin)
|
||||
cy.visit(`/admin/project/${testProjectId}`)
|
||||
})
|
||||
|
||||
it('displays expected tabs', () => {
|
||||
const tabs = ['Project Info', 'Deleted Docs', 'Audit Log']
|
||||
cy.get('[role="tab"]').each((el, index) => {
|
||||
cy.wrap(el).findByText(tabs[index]).click()
|
||||
})
|
||||
cy.get('[role="tab"]').should('have.length', tabs.length)
|
||||
})
|
||||
})
|
||||
|
||||
it('restore deleted projects', () => {
|
||||
login(user1)
|
||||
cy.visit('/project')
|
||||
|
|
Loading…
Reference in a new issue