X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a89c34e7cba3d8381302ff142c37e1a8b39ca80e..8e191ecaf0e507dd1d685ca3ebeab954652d8e9e:/cypress/support/commands.js diff --git a/cypress/support/commands.js b/cypress/support/commands.js index c2d78b54..842c9551 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -405,7 +405,10 @@ function b64toBlob(b64Data, contentType = '', sliceSize = 512) { // From https://github.com/cypress-io/cypress/issues/7306#issuecomment-1076451070= // This command requires the async package (https://www.npmjs.com/package/async) Cypress.Commands.add('waitForDom', () => { - cy.window().then(win => { + cy.window().then({ + // Don't timeout before waitForDom finishes + timeout: 10000 + }, win => { let timeElapsed = 0; cy.log("Waiting for DOM mutations to complete");