Skip to content

Commit 66ca99f

Browse files
skjnldsvbackportbot[bot]
authored andcommitted
fix(cypress): rename select all clear
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent b44f156 commit 66ca99f

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
@@ -171,8 +171,7 @@ export const renameFile = (fileName: string, newFileName: string) => {
171171
// intercept the move so we can wait for it
172172
cy.intercept('MOVE', /\/(remote|public)\.php\/dav\/files\//).as('moveFile')
173173

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

177176
cy.wait('@moveFile')
178177
}

0 commit comments

Comments
 (0)