diff --git a/test/cypress/cypressParallel.sh b/test/cypress/cypressParallel.sh index 8ef26bcde..a7073b24b 100644 --- a/test/cypress/cypressParallel.sh +++ b/test/cypress/cypressParallel.sh @@ -1,6 +1,6 @@ #!/bin/bash -find 'test/cypress/integration' \ +find 'test/cypress/integration/invoiceIn/' \ -mindepth 1 \ -maxdepth 1 \ -type d | \ diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 0243d9c8a..dedb03a2b 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -549,13 +549,14 @@ Cypress.Commands.add('validateDownload', (trigger, opts = {}) => { alias = 'download', } = opts; cy.intercept('GET', url).as(alias); - trigger(); - cy.wait(`@${alias}`).then(({ response }) => { - expect(response.statusCode).to.equal(200); - const isValidType = types.some((type) => - response.headers['content-type'].includes(type), - ); - expect(isValidType).to.be.true; + trigger().then(() => { + cy.wait(`@${alias}`).then(({ response }) => { + expect(response.statusCode).to.equal(200); + const isValidType = types.some((type) => + response.headers['content-type'].includes(type), + ); + expect(isValidType).to.be.true; + }); }); });