aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/e2e/files/FilesUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/e2e/files/FilesUtils.ts')
-rw-r--r--cypress/e2e/files/FilesUtils.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/cypress/e2e/files/FilesUtils.ts b/cypress/e2e/files/FilesUtils.ts
index 0e2081b6845..d8dd8ee5588 100644
--- a/cypress/e2e/files/FilesUtils.ts
+++ b/cypress/e2e/files/FilesUtils.ts
@@ -171,8 +171,7 @@ export const renameFile = (fileName: string, newFileName: string) => {
// intercept the move so we can wait for it
cy.intercept('MOVE', /\/(remote|public)\.php\/dav\/files\//).as('moveFile')
- getRowForFile(fileName).find('[data-cy-files-list-row-name] input').clear()
- getRowForFile(fileName).find('[data-cy-files-list-row-name] input').type(`${newFileName}{enter}`)
+ getRowForFile(fileName).find('[data-cy-files-list-row-name] input').type(`{selectAll}${newFileName}{enter}`)
cy.wait('@moveFile')
}