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
64 lines
2.3 KiB
TypeScript
64 lines
2.3 KiB
TypeScript
import { test, expect } from '../../../fixtures/base';
|
|
|
|
test.describe('AI-812-partial-execs-broken-when-using-chat-trigger', {
|
|
annotation: [
|
|
{ type: 'owner', description: 'AI' },
|
|
],
|
|
}, () => {
|
|
test.beforeEach(async ({ n8n }) => {
|
|
await n8n.start.fromImportedWorkflow('Test_chat_partial_execution.json');
|
|
await n8n.notifications.quickCloseAll();
|
|
await n8n.canvas.clickZoomToFitButton();
|
|
await n8n.canvas.deselectAll();
|
|
});
|
|
|
|
test.afterEach(async ({ n8n }) => {
|
|
await n8n.notifications.quickCloseAll();
|
|
await n8n.canvas.logsPanel.clearExecutionData();
|
|
await n8n.canvas.logsPanel.sendManualChatMessage('Test Full Execution');
|
|
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages()).toHaveCount(4);
|
|
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages().last()).toContainText(
|
|
'Set 3 with chatInput: Test Full Execution',
|
|
);
|
|
});
|
|
|
|
test('should do partial execution when using chat trigger and clicking NDV execute node', async ({
|
|
n8n,
|
|
}) => {
|
|
await n8n.canvas.openNode('Edit Fields1');
|
|
await n8n.ndv.execute();
|
|
|
|
await expect(n8n.canvas.logsPanel.getManualChatModal()).toBeVisible();
|
|
await n8n.canvas.logsPanel.sendManualChatMessage('Test Partial Execution');
|
|
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages()).toHaveCount(2);
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages().first()).toContainText(
|
|
'Test Partial Execution',
|
|
);
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages().last()).toContainText(
|
|
'Set 2 with chatInput: Test Partial Execution',
|
|
);
|
|
});
|
|
|
|
test('should do partial execution when using chat trigger and context-menu execute node', async ({
|
|
n8n,
|
|
}) => {
|
|
// Workaround to prevent the context menu be blocked by the tabbar
|
|
await n8n.canvas.dragNodeToRelativePosition('Edit Fields', 0, -100);
|
|
await n8n.canvas.executeNodeFromContextMenu('Edit Fields');
|
|
|
|
await expect(n8n.canvas.logsPanel.getManualChatModal()).toBeVisible();
|
|
await n8n.canvas.logsPanel.sendManualChatMessage('Test Partial Execution');
|
|
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages()).toHaveCount(2);
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages().first()).toContainText(
|
|
'Test Partial Execution',
|
|
);
|
|
await expect(n8n.canvas.logsPanel.getManualChatMessages().last()).toContainText(
|
|
'Set 1 with chatInput: Test Partial Execution',
|
|
);
|
|
});
|
|
});
|