Skip to content

Commit 3f1a503

Browse files
vmendezmarklogic-builder
authored andcommitted
DHFPROD-10558: Fix Intermittent failures in develop - 4651 run
1 parent 942410f commit 3f1a503

File tree

1 file changed

+3
-1
lines changed
  • marklogic-data-hub-central/ui/e2e/cypress/support

1 file changed

+3
-1
lines changed

marklogic-data-hub-central/ui/e2e/cypress/support/commands.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ Cypress.Commands.add("deleteFiles", (dataBase, ...files) => {
231231
});
232232

233233
Cypress.Commands.add("waitForAsyncRequest", () => {
234-
cy.window().then(win => new Cypress.Promise((resolve, reject) => win.requestIdleCallback(resolve, {timeout: 60000})));
234+
cy.window().then({timeout: 60000},
235+
win => new Cypress.Promise((resolve, reject) => win.requestIdleCallback(resolve, {timeout: 60000}))
236+
);
235237
});
236238

237239
function setTestUserRoles(roles) {

0 commit comments

Comments
 (0)