fix: n8n_test_workflow webhookId resolution and form handling (v2.28.2) (#462)

This commit is contained in:
Romuald Członkowski
2025-12-01 22:33:25 +01:00
committed by GitHub
parent 3188d209b7
commit ef9b6f6341
8 changed files with 792 additions and 226 deletions

View File

@@ -242,7 +242,7 @@ describe('Trigger Detector', () => {
expect(url).toContain('/form/');
});
it('should build chat URL correctly', () => {
it('should build chat URL correctly with /chat suffix', () => {
const baseUrl = 'https://n8n.example.com';
const trigger = {
type: 'chat' as const,
@@ -259,7 +259,8 @@ describe('Trigger Detector', () => {
const url = buildTriggerUrl(baseUrl, trigger, 'production');
expect(url).toBe('https://n8n.example.com/webhook/ai-chat');
// Chat triggers use /webhook/<webhookId>/chat endpoint
expect(url).toBe('https://n8n.example.com/webhook/ai-chat/chat');
});
});