17337: Adds valid file names test cases.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 3 Mar 2021 21:22:07 +0000 (18:22 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 3 Mar 2021 21:22:07 +0000 (18:22 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>

cypress/integration/collection.spec.js

index dfc1c466b9bd41371bc52f05d2c5229f83d9b458..dc26d09a36d95de842fb4b43235853a8a2b926e5 100644 (file)
@@ -187,7 +187,14 @@ describe('Collection panel tests', function () {
                     ['&', 'foo'],
                     ['foo', '&amp;'],
                     ['&amp;', 'I ❤️ ⛵️'],
-                    ['I ❤️ ⛵️', '...']
+                    ['I ❤️ ⛵️', '...'],
+                    ['...', , '#...'],
+                    ['#...', 'some name with whitespaces'],
+                    ['some name with whitespaces', 'some name with whitespaces #2'],
+                    ['some name with whitespaces #2', 'is this name legal? I hope it is'],
+                    ['is this name legal? I hope it is', 'some_file.pdf#'],
+                    ['some_file.pdf#', 'some_file.pdf?'],
+                    ['some_file.pdf?', '?some_file.pdf']
                 ];
                 nameTransitions.forEach(([from, to]) => {
                     cy.get('[data-cy=collection-files-panel]')