From f5a1172d32fe7b2ab8305767fa8f0bffa7d29538 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 11 Mar 2025 14:48:17 +0100 Subject: [PATCH] fix: refs #8581 update validateDownload command to restrict file type to text/plain --- test/cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cypress/support/commands.js b/test/cypress/support/commands.js index 70ab9225e..137b61c4f 100755 --- a/test/cypress/support/commands.js +++ b/test/cypress/support/commands.js @@ -545,7 +545,7 @@ Cypress.Commands.add('validateCheckbox', (selector, expectedVal = 'true') => { Cypress.Commands.add('validateDownload', (trigger, opts = {}) => { const { url = /api\/dms\/\d+\/downloadFile\?access_token=.+/, - type = 'text/plain, jpeg/image', + type = 'text/plain', alias = 'download', } = opts; cy.intercept('GET', url).as(alias);