feat(n8n Form Trigger Node): Improvements (#7571)

Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
Co-authored-by: Giulio Andreini <andreini@netseven.it>
This commit is contained in:
Michael Kret
2023-12-13 17:00:51 +02:00
committed by GitHub
parent 26f0d57f5f
commit 953a58f18b
37 changed files with 1163 additions and 496 deletions

View File

@@ -9,6 +9,7 @@ import { ExternalHooks } from '@/ExternalHooks';
import { InternalHooks } from '@/InternalHooks';
import { TestWebhooks } from '@/TestWebhooks';
import { WaitingWebhooks } from '@/WaitingWebhooks';
import { WaitingForms } from '@/WaitingForms';
import type { IResponseCallbackData } from '@/Interfaces';
import { mockInstance } from '../shared/mocking';
@@ -24,6 +25,7 @@ describe('WebhookServer', () => {
const activeWorkflowRunner = mockInstance(ActiveWorkflowRunner);
const testWebhooks = mockInstance(TestWebhooks);
mockInstance(WaitingWebhooks);
mockInstance(WaitingForms);
beforeAll(async () => {
const server = new (class extends AbstractServer {
@@ -36,8 +38,9 @@ describe('WebhookServer', () => {
const tests = [
['webhook', activeWorkflowRunner],
['webhookTest', testWebhooks],
// TODO: enable webhookWaiting after CORS support is added
// TODO: enable webhookWaiting & waitingForms after CORS support is added
// ['webhookWaiting', waitingWebhooks],
// ['formWaiting', waitingForms],
] as const;
for (const [key, manager] of tests) {