Skip to content

Commit

Permalink
Fix test for move activity
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Sep 26, 2023
1 parent a4055b9 commit 773cd00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/e2e/filesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export function createFolder (dirName: string) {
export function moveFile (fileName: string, dirName: string) {
cy.get(`.files-fileList tr[data-file="${fileName}"] .icon-more`).click()
cy.get(`.files-fileList tr[data-file="${fileName}"] .action-movecopy`).click()
cy.get(`.oc-dialog tr[data-entryname="${dirName}"]`).click()
cy.contains(`Move to ${dirName}`).click()
cy.get('.dialog__modal').within(() => {
cy.get(`tr[data-filename="${dirName}"]`).click()
cy.contains(`Move to ${dirName}`).click()
})
cy.wait(500)
}

0 comments on commit 773cd00

Please sign in to comment.