Merge pull request #52421 from nextcloud/backport/51309/stable30

[stable30] test(cypress): rename select all clear
This commit is contained in:
Andy Scherzinger 2025-04-24 23:53:09 +02:00 committed by GitHub
commit 6993031235
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,8 +159,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')
}