chore: Flaky test quarantined: should listen for a GET request with Header Authentication (#33747)

Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
n8n-cat-bot[bot]
2026-07-09 08:52:35 +00:00
committed by GitHub
parent 2e6a0fc427
commit 150ffe2f57
@@ -210,13 +210,20 @@ test.describe(
await n8n.ndv.execute();
await expect(n8n.ndv.getWebhookTestEvent()).toBeVisible();
const failResponse = await n8n.api.webhooks.trigger(`/webhook-test/${webhookPath}`, {
headers: {
test: 'wrong',
},
});
expect(failResponse.status()).toBe(403);
// The test webhook can take a moment to register after "Listening for test
// event" appears. A wrong-credential request is safe to retry because it fails
// auth before the workflow runs, so it never consumes the one-shot test webhook.
// Polling until it returns 403 also confirms the webhook is registered before
// the (single-use) success request is fired, avoiding a registration race.
await expect(async () => {
const failResponse = await n8n.api.webhooks.trigger(`/webhook-test/${webhookPath}`, {
headers: {
test: 'wrong',
},
maxNotFoundRetries: 0,
});
expect(failResponse.status()).toBe(403);
}).toPass();
const successResponse = await n8n.api.webhooks.trigger(`/webhook-test/${webhookPath}`, {
headers: {