mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
fix(cypress): rename select all clear
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
This commit is contained in:
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')
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue