Merge pull request #52422 from nextcloud/backport/51309/stable31

[stable31] test(cypress): rename select all clear
This commit is contained in:
Andy Scherzinger 2025-04-25 00:04:17 +02:00 committed by GitHub
commit 6661d29dca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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