From b3e8c8b16ae3038df35145f951df2252265865c3 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 10 Jan 2025 21:07:28 +0200 Subject: [PATCH] fix: attempt fixing e2e tests --- cypress/e2e/5-ndv.cy.ts | 22 +++---------------- .../src/composables/useCanvasOperations.ts | 1 + packages/editor-ui/src/views/NodeView.v2.vue | 5 ++++- 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/cypress/e2e/5-ndv.cy.ts b/cypress/e2e/5-ndv.cy.ts index 8bad424554..bc43cc6ec7 100644 --- a/cypress/e2e/5-ndv.cy.ts +++ b/cypress/e2e/5-ndv.cy.ts @@ -391,17 +391,8 @@ describe('NDV', () => { } // Correctly failing in V2 - due to floating navigation not updating the selected node - it('should traverse floating nodes with mouse', () => { + it.only('should traverse floating nodes with mouse', () => { cy.createFixtureWorkflow('Floating_Nodes.json', 'Floating Nodes'); - - cy.ifCanvasVersion( - () => {}, - () => { - // Needed in V2 as all nodes remain selected when clicking on a selected node - workflowPage.actions.deselectAll(); - }, - ); - workflowPage.getters.canvasNodes().first().dblclick(); getFloatingNodeByPosition('inputMain').should('not.exist'); getFloatingNodeByPosition('outputMain').should('exist'); @@ -448,14 +439,6 @@ describe('NDV', () => { // Correctly failing in V2 - due to floating navigation not updating the selected node it('should traverse floating nodes with keyboard', () => { cy.createFixtureWorkflow('Floating_Nodes.json', 'Floating Nodes'); - cy.ifCanvasVersion( - () => {}, - () => { - // Needed in V2 as all nodes remain selected when clicking on a selected node - workflowPage.actions.deselectAll(); - }, - ); - workflowPage.getters.canvasNodes().first().dblclick(); getFloatingNodeByPosition('inputMain').should('not.exist'); getFloatingNodeByPosition('outputMain').should('exist'); @@ -582,7 +565,8 @@ describe('NDV', () => { ndv.getters .outputTableRow(1) - .should('include.text', ' '); + .should('include.text', ' ') + .realHover(); cy.document().trigger('keyup', { key: '/' }); ndv.getters.searchInput().filter(':focus').type(' { - void onOpenSelectiveNodeCreator(node, connectionType); + nodeCreatorStore.openSelectiveNodeCreator({ node, connectionType, creatorView }); }, });