fix: refs #8581 update validateDownload command to restrict file type to text/plain
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jorge Penadés 2025-03-11 14:48:17 +01:00
parent 9d49b5af2a
commit f5a1172d32
1 changed files with 1 additions and 1 deletions

View File

@ -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);