From be96a1a92561f1cce3456230a67ba49b9dc49dc0 Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Tue, 2 Jul 2024 10:00:33 -0700 Subject: [PATCH] pkp/pkp-lib#10154 Update test to suit filename encoding change --- cypress/tests/integration/Filenames.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/tests/integration/Filenames.cy.js b/cypress/tests/integration/Filenames.cy.js index 8c4d3b00d58..08e9d00ca05 100644 --- a/cypress/tests/integration/Filenames.cy.js +++ b/cypress/tests/integration/Filenames.cy.js @@ -10,7 +10,7 @@ it('#6898 Tests submission file download name is correct', function() { var name = 'edição-£$L<->/4/ch 丹尼爾 a دانيال1d line \\n break.pdf'; var encodedName = 'edi%C3%A7%C3%A3o-%C2%A3%24L%3C-%3E%2F4%2Fch+%E4%B8%B9%E5%B0%BC%E7%88%BE+a+%D8%AF%D8%A7%D9%86%D9%8A%D8%A7%D9%841d+line+%5Cn+break.pdf'; - var responseHeader = 'attachment;filename="' + encodedName + '";filename*=UTF-8\'\'' + encodedName; + var responseHeader = 'attachment;filename=' + encodedName + ';filename*=UTF-8\'\'' + encodedName; var stageId = Cypress.env('contextTitles').en === 'Public Knowledge Preprint Server' ? 5 : 1; var downloadUrl = 'index.php/publicknowledge/$$$call$$$/api/file/file-api/download-file?submissionFileId=1&submissionId=1&stageId=' + stageId;