Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { EDIT_FIELDS_SET_NODE_NAME } from '../../../config/constants';
|
||
import { test, expect } from '../../../fixtures/base';
|
||
|
||
test.describe('CAT-726 Node connectors not rendered when nodes inserted on the canvas', {
|
||
annotation: [
|
||
{ type: 'owner', description: 'Catalysts' },
|
||
],
|
||
}, () => {
|
||
test('should correctly append a No Op node when Loop Over Items node is added (from add button)', async ({
|
||
n8n,
|
||
}) => {
|
||
await n8n.start.fromBlankCanvas();
|
||
await n8n.canvas.addNode(EDIT_FIELDS_SET_NODE_NAME, { closeNDV: true });
|
||
await n8n.workflowComposer.executeWorkflowAndWaitForNotification(
|
||
'Workflow executed successfully',
|
||
);
|
||
|
||
await n8n.canvas.addNodeBetweenNodes(
|
||
'When clicking ‘Execute workflow’',
|
||
'Edit Fields',
|
||
'Loop Over Items (Split in Batches)',
|
||
);
|
||
|
||
await expect(n8n.canvas.getCanvasNodes()).toHaveCount(4);
|
||
await expect(n8n.canvas.nodeConnections()).toHaveCount(4);
|
||
|
||
await expect
|
||
.soft(n8n.canvas.connectionBetweenNodes('Loop Over Items', 'Replace Me'))
|
||
.toBeVisible();
|
||
await expect
|
||
.soft(n8n.canvas.connectionBetweenNodes('Loop Over Items', 'Edit Fields'))
|
||
.toBeVisible();
|
||
await expect
|
||
.soft(n8n.canvas.connectionBetweenNodes('Replace Me', 'Loop Over Items'))
|
||
.toBeVisible();
|
||
});
|
||
});
|