From 7d31cf05d07bce6337ebc7c40f8b32c24dcfa87f Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Mon, 15 May 2023 18:52:09 +0300 Subject: [PATCH] fix: fix close without connecting confirmation --- cypress/e2e/2-credentials.cy.ts | 2 +- .../editor-ui/src/components/CredentialEdit/CredentialEdit.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/2-credentials.cy.ts b/cypress/e2e/2-credentials.cy.ts index 17d51ebb0ded4..623813f6e611e 100644 --- a/cypress/e2e/2-credentials.cy.ts +++ b/cypress/e2e/2-credentials.cy.ts @@ -114,7 +114,7 @@ describe('Credentials', () => { workflowPage.getters.nodeCredentialsSelect().should('contain', NEW_GOOGLE_ACCOUNT_NAME); }); - it('should show multiple credential types in the same dropdown', () => { + it.only('should show multiple credential types in the same dropdown', () => { workflowPage.actions.visit(); workflowPage.actions.addNodeToCanvas(SCHEDULE_TRIGGER_NODE_NAME); workflowPage.actions.addNodeToCanvas(GMAIL_NODE_NAME); diff --git a/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue b/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue index 06054b323244c..3e290a7315acb 100644 --- a/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue +++ b/packages/editor-ui/src/components/CredentialEdit/CredentialEdit.vue @@ -528,7 +528,7 @@ export default mixins(nodeHelpers, externalHooks).extend({ ), }, ); - keepEditing = confirmAction === MODAL_CONFIRM; + keepEditing = confirmAction !== MODAL_CONFIRM; } if (!keepEditing) {