|
1 |
| -describe('AssignNodeToConnectionOnDropComponent', () => { |
2 |
| - beforeEach(() => { |
3 |
| - cy.visit('http://localhost:4200/examples/assign-node-to-connection-on-drop'); |
4 |
| - cy.get('f-flow').scrollIntoView(); |
5 |
| - }) |
6 |
| - |
7 |
| - it('should drag node to connection and connect it', function () { |
8 |
| - cy.get('f-flow').scrollIntoView(); |
9 |
| - |
10 |
| - cy.get('#connection_112').should('exist'); |
11 |
| - |
12 |
| - cy.get('div[data-f-input-id=\'1\']').should('exist'); |
13 |
| - cy.get('div[data-f-input-id=\'2\']').should('exist'); |
14 |
| - cy.get('div[data-f-input-id=\'3\']').should('exist'); |
15 |
| - |
16 |
| - cy.get('div[data-f-node-id="3"]').then(($target) => { |
17 |
| - const targetRect = $target[ 0 ].getBoundingClientRect(); |
18 |
| - const endY = targetRect.y + targetRect.height / 2; |
19 |
| - |
20 |
| - cy.get('div[data-f-node-id="3"]') |
21 |
| - .trigger('mousedown', { button: 0, clientY: endY, force: true }) |
22 |
| - .trigger('mousemove', { button: 0, clientY: endY + 140, force: true }) |
23 |
| - .trigger('pointerup', { force: true }); |
24 |
| - |
25 |
| - cy.get('#connection_232').should('exist'); |
26 |
| - cy.get('#connection_113').should('exist'); |
27 |
| - }); |
28 |
| - }); |
29 |
| -}) |
30 |
| - |
31 |
| - |
32 |
| - |
| 1 | +// describe('AssignNodeToConnectionOnDropComponent', () => { |
| 2 | +// beforeEach(() => { |
| 3 | +// cy.visit('http://localhost:4200/examples/assign-node-to-connection-on-drop'); |
| 4 | +// cy.get('f-flow').scrollIntoView(); |
| 5 | +// }) |
| 6 | +// |
| 7 | +// it('should drag node to connection and connect it', function () { |
| 8 | +// cy.get('f-flow').scrollIntoView(); |
| 9 | +// |
| 10 | +// cy.get('#connection_112').should('exist'); |
| 11 | +// |
| 12 | +// cy.get('div[data-f-input-id=\'1\']').should('exist'); |
| 13 | +// cy.get('div[data-f-input-id=\'2\']').should('exist'); |
| 14 | +// cy.get('div[data-f-input-id=\'3\']').should('exist'); |
| 15 | +// |
| 16 | +// cy.get('div[data-f-node-id="3"]').then(($target) => { |
| 17 | +// const targetRect = $target[ 0 ].getBoundingClientRect(); |
| 18 | +// const endY = targetRect.y + targetRect.height / 2; |
| 19 | +// |
| 20 | +// cy.get('div[data-f-node-id="3"]') |
| 21 | +// .trigger('mousedown', { button: 0, clientY: endY, force: true }) |
| 22 | +// .trigger('mousemove', { button: 0, clientY: endY + 140, force: true }) |
| 23 | +// .trigger('pointerup', { force: true }); |
| 24 | +// |
| 25 | +// cy.get('#connection_232').should('exist'); |
| 26 | +// cy.get('#connection_113').should('exist'); |
| 27 | +// }); |
| 28 | +// }); |
| 29 | +// }) |
| 30 | +// |
| 31 | +// |
| 32 | +// |
0 commit comments