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:
Mathias Jakobsen 2024-09-04 09:55:19 +01:00 committed by Copybot
parent 5d57571e96
commit 1a8cf9b87d

View file

@ -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')