Skip to content

Commit f04fedc

Browse files
committed
fix(cypress): rename select all clear
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 52fbdc6 commit f04fedc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cypress/e2e/files/FilesUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ export const renameFile = (fileName: string, newFileName: string) => {
158158
// intercept the move so we can wait for it
159159
cy.intercept('MOVE', /\/remote.php\/dav\/files\//).as('moveFile')
160160

161-
getRowForFile(fileName).find('[data-cy-files-list-row-name] input').clear()
162-
getRowForFile(fileName).find('[data-cy-files-list-row-name] input').type(`${newFileName}{enter}`)
161+
getRowForFile(fileName).find('[data-cy-files-list-row-name] input').type(`{selectAll}${newFileName}{enter}`)
163162

164163
cy.wait('@moveFile')
165164
}

0 commit comments

Comments
 (0)