mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Upgrade to Prettier 3 (no-changelog) (#6947)
Supersedes https://github.com/n8n-io/n8n/pull/6937 Excluding fixtures and test workflow JSONs to avoid having to update tests.
This commit is contained in:
@@ -111,13 +111,13 @@ Cypress.Commands.add('drag', (selector, pos, options) => {
|
||||
const newPosition = {
|
||||
x: options?.abs ? xDiff : originalLocation.right + xDiff,
|
||||
y: options?.abs ? yDiff : originalLocation.top + yDiff,
|
||||
}
|
||||
if(options?.realMouse) {
|
||||
};
|
||||
if (options?.realMouse) {
|
||||
element.realMouseDown();
|
||||
element.realMouseMove(newPosition.x, newPosition.y);
|
||||
element.realMouseUp();
|
||||
} else {
|
||||
element.trigger('mousedown', {force: true});
|
||||
element.trigger('mousedown', { force: true });
|
||||
element.trigger('mousemove', {
|
||||
which: 1,
|
||||
pageX: newPosition.x,
|
||||
@@ -129,7 +129,7 @@ Cypress.Commands.add('drag', (selector, pos, options) => {
|
||||
// For some reason, mouseup isn't working when moving nodes
|
||||
cy.get('body').click(newPosition.x, newPosition.y);
|
||||
} else {
|
||||
element.trigger('mouseup', {force: true});
|
||||
element.trigger('mouseup', { force: true });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user