From 0b4bf78868000b7ed29570b56581a24ff671f49c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kuty=C5=82a?= Date: Sun, 24 Jan 2021 11:32:48 +0100 Subject: [PATCH] 17256: Fixed broken tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- cypress/integration/collection-panel.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cypress/integration/collection-panel.spec.js b/cypress/integration/collection-panel.spec.js index f70fe691..424c2bad 100644 --- a/cypress/integration/collection-panel.spec.js +++ b/cypress/integration/collection-panel.spec.js @@ -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(); -- 2.30.2