From c797ff39572137b5552f76f29d39b94c7554b1a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kuty=C5=82a?= Date: Thu, 3 Feb 2022 00:24:19 +0100 Subject: [PATCH] 18594: Added cypress test to show that username in advanced metadata is loaded 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/project.spec.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/cypress/integration/project.spec.js b/cypress/integration/project.spec.js index 6b87a3c2..f369330e 100644 --- a/cypress/integration/project.spec.js +++ b/cypress/integration/project.spec.js @@ -214,4 +214,31 @@ describe('Project tests', function() { cy.get('[data-cy=search-input] input').should('not.have.value', 'test123'); }); }); + + it('opens advanced popup for project with username', () => { + const projectName = `Test root project ${Math.floor(Math.random() * 999999)}`; + + cy.createProject({ + owningUser: adminUser, + targetUser: activeUser, + projectName, + canWrite: true, + addToFavorites: true + }).as('mySharedProject'); + + cy.getAll('@mySharedProject') + .then(function ([mySharedProject]) { + cy.loginAs(activeUser); + + cy.get('[data-cy=side-panel-tree]').contains('Shared with me').click(); + + cy.get('main').contains(projectName).rightclick(); + + cy.get('[data-cy=context-menu]').contains('Advanced').click(); + + cy.get('[role=tablist]').contains('METADATA').click(); + + cy.get('td').contains('User: Active User').should('exist'); + }); + }); }); \ No newline at end of file -- 2.30.2