mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(editor): Fix canvas selection breaking after interacting with node actions (#7466)
Sometimes canvas selection stops working after users interact with node action buttons (for example if node is moved by dragging one of the buttons) NOTE: Ticket number in the branch name is wrong, this fixes ADO-1226
This commit is contained in:
committed by
GitHub
parent
b50376cf52
commit
bc473655fb
@@ -327,5 +327,12 @@ export class WorkflowPage extends BasePage {
|
||||
shouldHaveWorkflowName: (name: string) => {
|
||||
this.getters.workflowNameInputContainer().invoke('attr', 'title').should('include', name);
|
||||
},
|
||||
testLassoSelection: (from: [number, number], to: [number, number]) => {
|
||||
cy.getByTestId('node-view-wrapper').trigger('mousedown', from[0], from[1], { force: true });
|
||||
cy.getByTestId('node-view-wrapper').trigger('mousemove', to[0], to[1], { force: true });
|
||||
cy.get('#select-box').should('be.visible');
|
||||
cy.getByTestId('node-view-wrapper').trigger('mouseup', to[0], to[1], { force: true });
|
||||
cy.get('#select-box').should('not.be.visible');
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user