X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fcbcbbb978fbb0d381c23a2ac204940c1c80dda3..274f2f9408e4553643af1b8154050f052132714e:/cypress/integration/side-panel.spec.js diff --git a/cypress/integration/side-panel.spec.js b/cypress/integration/side-panel.spec.js index 95b564007c..8100a0e481 100644 --- a/cypress/integration/side-panel.spec.js +++ b/cypress/integration/side-panel.spec.js @@ -30,13 +30,13 @@ describe('Side panel tests', function() { it('enables the +NEW side panel button on users home project', function() { cy.loginAs(activeUser); - cy.visit(`/projects/${activeUser.user.uuid}`); + cy.doSearch(`${activeUser.user.uuid}`); cy.get('[data-cy=side-panel-button]') .should('exist') .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, { @@ -49,7 +49,7 @@ describe('Side panel tests', function() { head_uuid: this.sharedGroup.uuid, tail_uuid: activeUser.user.uuid }) - cy.visit(`/projects/${this.sharedGroup.uuid}`); + cy.doSearch(`${this.sharedGroup.uuid}`); cy.get('[data-cy=side-panel-button]') .should('exist') .and(`${isWritable ? 'not.' : ''}be.disabled`); @@ -75,4 +75,22 @@ 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', + properties: {filters: []}, + }).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`); + }) + }) + +})