17337: Adds more file renaming test cases.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 25 Mar 2021 13:58:50 +0000 (10:58 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Thu, 25 Mar 2021 13:58:50 +0000 (10:58 -0300)
It seems that the UI is decoding literal decodeable strings like:

%22    -> "
%C3%BC -> ΓΌ

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

cypress/integration/collection.spec.js

index 8c002362f2d7b20726ac9c006415e330b8890f3d..3041acf5b2cd9e783a4241190862ec27cbdccd2a 100644 (file)
@@ -202,7 +202,11 @@ describe('Collection panel tests', function () {
                     'some_file.pdf?',
                     '?some_file.pdf',
                     'some%file.pdf',
-                    'some%2Ffile.pdf'
+                    'some%2Ffile.pdf',
+                    'some%22file.pdf',
+                    'some%20file.pdf',
+                    "G%C3%BCnter's%20file.pdf",
+                    'bar' // make sure we can go back to the original name as a last step
                 ];
                 eachPair(names, (from, to) => {
                     cy.get('[data-cy=collection-files-panel]')