diff --git a/cypress/e2e/17-sharing.cy.ts b/cypress/e2e/17-sharing.cy.ts index 668accd2465de..77d9fd92cfc4a 100644 --- a/cypress/e2e/17-sharing.cy.ts +++ b/cypress/e2e/17-sharing.cy.ts @@ -131,7 +131,7 @@ describe('Sharing', { disableAutoLogin: true }, () => { credentialsModal.getters.testSuccessTag().should('be.visible'); }); - it.only('should work for admin role on credentials created by others (also can share it with themselves)', () => { + it('should work for admin role on credentials created by others (also can share it with themselves)', () => { cy.signin(INSTANCE_MEMBERS[0]); cy.visit(credentialsPage.url); @@ -150,6 +150,9 @@ describe('Sharing', { disableAutoLogin: true }, () => { credentialsModal.getters.testSuccessTag().should('be.visible'); cy.get('input').should('not.have.length'); credentialsModal.actions.changeTab('Sharing'); + cy.contains( + 'You can view this credential because you have permission to read and share', + ).should('be.visible'); credentialsModal.getters.usersSelect().click(); cy.getByTestId('user-email') diff --git a/packages/editor-ui/src/components/CredentialEdit/CredentialSharing.ee.vue b/packages/editor-ui/src/components/CredentialEdit/CredentialSharing.ee.vue index 28d4b7f0ce203..b44d24a51597f 100644 --- a/packages/editor-ui/src/components/CredentialEdit/CredentialSharing.ee.vue +++ b/packages/editor-ui/src/components/CredentialEdit/CredentialSharing.ee.vue @@ -41,7 +41,15 @@ }) }} - +