Skip to content

Commit

Permalink
fix(cypress): rename select all clear
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Mar 6, 2025
1 parent 21554da commit 86a25c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cypress/e2e/files/FilesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ export const renameFile = (fileName: string, newFileName: string) => {
// intercept the move so we can wait for it
cy.intercept('MOVE', /\/remote.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')
}
Expand Down

0 comments on commit 86a25c8

Please sign in to comment.