Skip to content

Commit

Permalink
#10154 Update test to suit filename encoding change
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jul 2, 2024
1 parent 25d1328 commit be96a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/tests/integration/Filenames.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit be96a1a

Please sign in to comment.