X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3091c269a16a294cb8f19d5c325affdfc03c50f4..8297f0f273e326e64145a48266805b0b3d073c32:/cypress/integration/side-panel.spec.js diff --git a/cypress/integration/side-panel.spec.js b/cypress/integration/side-panel.spec.js index fe9d840010..309037ec58 100644 --- a/cypress/integration/side-panel.spec.js +++ b/cypress/integration/side-panel.spec.js @@ -75,68 +75,4 @@ describe('Side panel tests', function() { .and('be.disabled'); }) }) - - it('creates new collection on home project', function() { - cy.loginAs(activeUser); - cy.doSearch(`${activeUser.user.uuid}`); - cy.get('[data-cy=breadcrumb-first]').should('contain', 'Projects'); - cy.get('[data-cy=breadcrumb-last]').should('not.exist'); - // Create new collection - cy.get('[data-cy=side-panel-button]').click(); - cy.get('[data-cy=side-panel-new-collection]').click(); - const collName = `Test collection (${Math.floor(999999 * Math.random())})`; - cy.get('[data-cy=form-dialog]') - .should('contain', 'New collection') - .within(() => { - cy.get('[data-cy=parent-field]').within(() => { - cy.get('input').should('have.value', 'Home project'); - }) - cy.get('[data-cy=name-field]').within(() => { - cy.get('input').type(collName); - }) - }) - cy.get('[data-cy=form-submit-btn]').click(); - // Confirm that the user was taken to the newly created thing - cy.get('[data-cy=form-dialog]').should('not.exist'); - cy.get('[data-cy=breadcrumb-first]').should('contain', 'Projects'); - cy.get('[data-cy=breadcrumb-last]').should('contain', collName); - }) - - it('creates new project on home project and then a subproject inside it', function() { - const createProject = function(name, parentName) { - cy.get('[data-cy=side-panel-button]').click(); - cy.get('[data-cy=side-panel-new-project]').click(); - cy.get('[data-cy=form-dialog]') - .should('contain', 'New project') - .within(() => { - cy.get('[data-cy=parent-field]').within(() => { - cy.get('input').invoke('val').then((val) => { - expect(val).to.include(parentName); - }) - }) - cy.get('[data-cy=name-field]').within(() => { - cy.get('input').type(name); - }) - }) - cy.get('[data-cy=form-submit-btn]').click(); - } - - cy.loginAs(activeUser); - cy.doSearch(`${activeUser.user.uuid}`); - cy.get('[data-cy=breadcrumb-first]').should('contain', 'Projects'); - cy.get('[data-cy=breadcrumb-last]').should('not.exist'); - // Create new project - const projName = `Test project (${Math.floor(999999 * Math.random())})`; - createProject(projName, 'Home project'); - // Confirm that the user was taken to the newly created thing - cy.get('[data-cy=form-dialog]').should('not.exist'); - cy.get('[data-cy=breadcrumb-first]').should('contain', 'Projects'); - cy.get('[data-cy=breadcrumb-last]').should('contain', projName); - // Create a subproject - const subProjName = `Test project (${Math.floor(999999 * Math.random())})`; - createProject(subProjName, projName); - cy.get('[data-cy=form-dialog]').should('not.exist'); - cy.get('[data-cy=breadcrumb-first]').should('contain', 'Projects'); - cy.get('[data-cy=breadcrumb-last]').should('contain', subProjName); - }) }) \ No newline at end of file