mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #47671 from nextcloud/chore/cypress-intercept-timeout
test(cypress): Await promise in response to prevent timeout
This commit is contained in:
commit
69f4a397d1
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue