aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-16 16:22:51 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-08-17 18:56:39 +0200
commitfdf07fc759f22bcd1f26c7e4fd7f025582cc3519 (patch)
tree98fa998aedcd46e60e2045ac96650c71c04cd63a /cypress
parent9a5b26675c6f14b3b8afa0af27be946b6f5315de (diff)
downloadnextcloud-server-fdf07fc759f22bcd1f26c7e4fd7f025582cc3519.tar.gz
nextcloud-server-fdf07fc759f22bcd1f26c7e4fd7f025582cc3519.zip
fix(cypress): adjust selectors
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
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()