mirror of
https://github.com/n8n-io/n8n.git
synced 2026-07-29 03:55:15 +02:00
test: Fix flaky Instance AI remediation guard skill narration assertion (no-changelog) (#34442)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
40c5b76708
commit
3323eb688b
|
|
@ -253,10 +253,15 @@ test.describe(
|
|||
'When the build result reports that setup is required before verification, open the workflow setup card with workflows(action="setup") and stop editing.',
|
||||
);
|
||||
|
||||
await expect(n8n.instanceAi.workflowSetup.getCard()).toBeVisible({ timeout: 540_000 });
|
||||
// The skill-opening narration is surfaced transiently in the thinking
|
||||
// trace while the orchestrator loads the workflow-builder skill, then
|
||||
// collapses once the build completes. Assert it while the run is still
|
||||
// in progress — before awaiting the terminal setup card.
|
||||
await expect(
|
||||
n8n.instanceAi.getAssistantMessageText('Opening skill: workflow-builder'),
|
||||
).toBeVisible();
|
||||
).toBeVisible({ timeout: 540_000 });
|
||||
|
||||
await expect(n8n.instanceAi.workflowSetup.getCard()).toBeVisible({ timeout: 540_000 });
|
||||
await expect(n8n.instanceAi.getAssistantMessageText(TERMINAL_FALLBACK_TEXT)).toHaveCount(0);
|
||||
|
||||
const events = getLatestRecordingEvents(await getTraceEvents(api, testInfo));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user