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