From e61a224071c6aba551e49bf078a120f29af00bb2 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Fri, 12 Mar 2021 17:44:17 -0500 Subject: [PATCH] 17119: add a filter group test. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- cypress/integration/side-panel.spec.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/cypress/integration/side-panel.spec.js b/cypress/integration/side-panel.spec.js index 309037ec..e75a366e 100644 --- a/cypress/integration/side-panel.spec.js +++ b/cypress/integration/side-panel.spec.js @@ -36,7 +36,7 @@ describe('Side panel tests', function() { .and('not.be.disabled'); }) - it('disables or enables the +NEW side panel button on depending on project permissions', function() { + it('disables or enables the +NEW side panel button depending on project permissions', function() { cy.loginAs(activeUser); [true, false].map(function(isWritable) { cy.createGroup(adminUser.token, { @@ -75,4 +75,21 @@ describe('Side panel tests', function() { .and('be.disabled'); }) }) -}) \ No newline at end of file + + it('disables the +NEW side panel button when viewing filter group', function() { + cy.loginAs(adminUser); + cy.createGroup(adminUser.token, { + name: `my-favorite-filter-group`, + group_class: 'filter', + }).as('myFavoriteFilterGroup').then(function (myFavoriteFilterGroup) { + cy.contains('Refresh').click(); + cy.doSearch(`${myFavoriteFilterGroup.uuid}`); + cy.get('[data-cy=breadcrumb-last]').should('contain', 'my-favorite-filter-group'); + + cy.get('[data-cy=side-panel-button]') + .should('exist') + .and(`be.disabled`); + }) + }) + +}) -- 2.30.2