fix(cypress): rename select all clear

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/52422/head
skjnldsv 2025-03-06 16:08:18 +07:00 committed by backportbot[bot]
parent 989f24fea6
commit b3ca9c0bec
1 changed files with 1 additions and 2 deletions

@ -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')
}