aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/files.cy.ts2
-rw-r--r--cypress/e2e/files_versions/filesVersionsUtils.ts12
2 files changed, 7 insertions, 7 deletions
diff --git a/cypress/e2e/files.cy.ts b/cypress/e2e/files.cy.ts
index 7b3a4ff7a56..9bdb05c8c72 100644
--- a/cypress/e2e/files.cy.ts
+++ b/cypress/e2e/files.cy.ts
@@ -32,6 +32,6 @@ describe('Login with a new user and open the files app', function() {
it('See the default file welcome.txt in the files list', function() {
cy.visit('/apps/files')
- cy.get('.files-fileList tr').should('contain', 'welcome.txt')
+ cy.get('[data-cy-files-list] [data-cy-files-list-row-name="welcome.txt"]').should('be.visible')
})
})
diff --git a/cypress/e2e/files_versions/filesVersionsUtils.ts b/cypress/e2e/files_versions/filesVersionsUtils.ts
index 87252fc60f1..789bfc97d4e 100644
--- a/cypress/e2e/files_versions/filesVersionsUtils.ts
+++ b/cypress/e2e/files_versions/filesVersionsUtils.ts
@@ -36,15 +36,15 @@ export function uploadThreeVersions(user: User, fileName: string) {
}
export function openVersionsPanel(fileName: string) {
- cy.get(`[data-file="${fileName}"]`).within(() => {
- cy.get('[data-action="menu"]')
- .click()
-
- cy.get('.fileActionsMenu')
- .get('.action-details')
+ cy.get(`[data-cy-files-list] [data-cy-files-list-row-name="${fileName}"]`).within(() => {
+ cy.get('[data-cy-files-list-row-actions] .action-item__menutoggle')
.click()
})
+ cy.get('.action-item__popper')
+ .get('[data-cy-files-list-row-action="details"]')
+ .click()
+
cy.get('#app-sidebar-vue')
.get('[aria-controls="tab-version_vue"]')
.click()