17337: Adds valid file names test cases.
[arvados-workbench2.git] / cypress / integration / collection.spec.js
index dfc1c466b9bd41371bc52f05d2c5229f83d9b458..dc26d09a36d95de842fb4b43235853a8a2b926e5 100644 (file)
@@ -187,7 +187,14 @@ describe('Collection panel tests', function () {
                     ['&', 'foo'],
                     ['foo', '&'],
                     ['&', '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]')