diff --git a/cypress/e2e/filesUtils.ts b/cypress/e2e/filesUtils.ts index 509972a3d..7e7cad393 100644 --- a/cypress/e2e/filesUtils.ts +++ b/cypress/e2e/filesUtils.ts @@ -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) } \ No newline at end of file