From d0a0c853529a2aa73e37b7a012f50d23adcc2972 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Mon, 24 Jul 2023 15:31:33 +0300 Subject: [PATCH] fix: update ndv e2e tests --- cypress/e2e/5-ndv.cy.ts | 17 ++++++++++------- .../src/components/NodeExecuteButton.vue | 2 ++ .../editor-ui/src/stores/workflows.store.ts | 2 -- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/cypress/e2e/5-ndv.cy.ts b/cypress/e2e/5-ndv.cy.ts index 6e3f38ca5b..d30fa6d664 100644 --- a/cypress/e2e/5-ndv.cy.ts +++ b/cypress/e2e/5-ndv.cy.ts @@ -28,14 +28,17 @@ describe('NDV', () => { cy.grantBrowserPermissions('clipboardReadWrite', 'clipboardSanitizedWrite'); - cy.readClipboard().then((url) => { - cy.request({ - method: 'GET', - url, - }).then((resp) => { - expect(resp.status).to.eq(200); + cy.window() + .focus() + .readClipboard() + .then((url) => { + cy.request({ + method: 'GET', + url, + }).then((resp) => { + expect(resp.status).to.eq(200); + }); }); - }); ndv.getters.outputDisplayMode().should('have.length.at.least', 1).and('be.visible'); }); diff --git a/packages/editor-ui/src/components/NodeExecuteButton.vue b/packages/editor-ui/src/components/NodeExecuteButton.vue index dae424c3f4..128a21a414 100644 --- a/packages/editor-ui/src/components/NodeExecuteButton.vue +++ b/packages/editor-ui/src/components/NodeExecuteButton.vue @@ -5,6 +5,7 @@