fix: refs #8581 update validateDownload command to support jpeg/image type
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jorge Penadés 2025-03-11 14:42:43 +01:00
parent 2c134f9935
commit 319c23dd98
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',
type = 'text/plain, jpeg/image',
alias = 'download',
} = opts;
cy.intercept('GET', url).as(alias);