diff options
-rw-r--r-- | cypress/e2e/files/files-renaming.cy.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cypress/e2e/files/files-renaming.cy.ts b/cypress/e2e/files/files-renaming.cy.ts index 3d5f23e9d45..9ac96a398b8 100644 --- a/cypress/e2e/files/files-renaming.cy.ts +++ b/cypress/e2e/files/files-renaming.cy.ts @@ -78,7 +78,10 @@ describe('files: Rename nodes', { testIsolation: true }, () => { cy.intercept( 'MOVE', /\/remote.php\/dav\/files\//, - async () => { await promise }, + (request) => { + // we need to wait in the onResponse handler as the intercept handler times out otherwise + request.on('response', async () => { await promise }) + }, ).as('moveFile') // Start the renaming |