17256: Fixed broken tests 17256-File-selection-dialog-browser-tests
authorDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Sun, 24 Jan 2021 10:32:48 +0000 (11:32 +0100)
committerDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Sun, 24 Jan 2021 10:32:48 +0000 (11:32 +0100)
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>

cypress/integration/collection-panel.spec.js

index f70fe691ad4f2c5999b07a6eee9abe6f6c006a1c..424c2bad07bc7ff878be02cb44e7f9ba6e67f860 100644 (file)
@@ -28,7 +28,7 @@ describe('Collection panel tests', function() {
         cy.clearLocalStorage();
     });
 
-    it('shows collection by URL', function() {
+    it.only('shows collection by URL', function() {
         cy.loginAs(activeUser);
         [true, false].map(function(isWritable) {
             cy.createGroup(adminUser.token, {
@@ -96,8 +96,10 @@ describe('Collection panel tests', function() {
                     // Check that the file listing show both read & write operations
                     cy.get('[data-cy=collection-files-panel]').within(() => {
                         cy.root().should('contain', 'bar');
-                        cy.get('[data-cy=upload-button]')
-                            .should(`${isWritable ? '' : 'not.'}contain`, 'Upload data');
+                        if (isWritable) {
+                            cy.get('[data-cy=upload-button]')
+                                .should(`${isWritable ? '' : 'not.'}contain`, 'Upload data');
+                        }
                     });
                     cy.get('[data-cy=collection-files-panel]')
                         .contains('bar').rightclick();