fix: refs #8581 update validateDownload command to restrict file type to text/plain
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
9d49b5af2a
commit
f5a1172d32
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue