diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2025-03-06 16:08:18 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2025-03-06 16:32:45 +0100 |
commit | 86a25c84d8269a287711823285f72cf7b2a0b652 (patch) | |
tree | a5b79c9e115d927382421224406920b58253b7bf | |
parent | 21554daed2f5f88f98cb91bd6ebcca1041d3a8f9 (diff) | |
download | nextcloud-server-86a25c84d8269a287711823285f72cf7b2a0b652.tar.gz nextcloud-server-86a25c84d8269a287711823285f72cf7b2a0b652.zip |
fix(cypress): rename select all clear
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r-- | cypress/e2e/files/FilesUtils.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cypress/e2e/files/FilesUtils.ts b/cypress/e2e/files/FilesUtils.ts index be866a3f255..cb2d8ed3e18 100644 --- a/cypress/e2e/files/FilesUtils.ts +++ b/cypress/e2e/files/FilesUtils.ts @@ -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') } |