From 1a8cf9b87ded82c328726ec70c7e4bc27883ca1c Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Wed, 4 Sep 2024 09:55:19 +0100 Subject: [PATCH] Merge pull request #20235 from overleaf/mj-disable-sp-history-debugging [web] Hide history debugging admin tab for Server Pro GitOrigin-RevId: afba1dd0b2bc3d76b4931058f588ae4532ca9609 --- server-ce/test/admin.spec.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server-ce/test/admin.spec.ts b/server-ce/test/admin.spec.ts index de18ce11c4..7a982bf672 100644 --- a/server-ce/test/admin.spec.ts +++ b/server-ce/test/admin.spec.ts @@ -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')