Skip to content

Commit c45c792

Browse files
Merge pull request #51309 from nextcloud/backport/51260/master
test(cypress): rename select all clear
2 parents 34949e4 + 3b85743 commit c45c792

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cypress/e2e/files/FilesUtils.ts

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

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

187186
cy.wait('@moveFile')
188187
}

0 commit comments

Comments
 (0)