Merge branch '16115-sharing-links'. Closes #16115
[arvados-workbench2.git] / cypress / support / commands.js
index 74f44f7a5ae83fc6ef7d5c2ec640f5cda72d4fc0..e98000fc71403462a2f67ffbb0008c804da5c4b0 100644 (file)
@@ -423,7 +423,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");