Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(cypress): Prevent file being locked on rename
Signed-off-by: Marcel Müller <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
SystemKeeper authored and artonge committed May 26, 2025
commit 8fe9661f763a68df8fdd2b9a48dce6e70bb76ddc
5 changes: 5 additions & 0 deletions cypress/e2e/filesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ export const triggerActionForFile = (filename: string, actionId: string) => {
}

export function renameFile(fileName: string, newName: string) {
// The file must exist and the preview loaded as it locks the file
getRowForFile(fileName)
.should('be.visible')
.find('.files-list__row-icon-preview--loaded')
.should('exist')

triggerActionForFile(fileName, 'rename')

// intercept the move so we can wait for it
Expand Down