aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/files_versions/version_creation.cy.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/e2e/files_versions/version_creation.cy.ts')
-rw-r--r--cypress/e2e/files_versions/version_creation.cy.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cypress/e2e/files_versions/version_creation.cy.ts b/cypress/e2e/files_versions/version_creation.cy.ts
index 8fef4376db1..a0441e96b29 100644
--- a/cypress/e2e/files_versions/version_creation.cy.ts
+++ b/cypress/e2e/files_versions/version_creation.cy.ts
@@ -30,4 +30,18 @@ describe('Versions creation', () => {
cy.get('[data-files-versions-version]').eq(2).contains('Initial version')
})
})
+
+ it('See yourself as version author', () => {
+ cy.visit('/apps/files')
+ openVersionsPanel(randomFileName)
+
+ cy.findByRole('tabpanel', { name: 'Versions' })
+ .findByRole('list', { name: 'File versions' })
+ .findAllByRole('listitem')
+ .should('have.length', 3)
+ .first()
+ .find('[data-cy-files-version-author-name]')
+ .should('exist')
+ .and('contain.text', 'You')
+ })
})