Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cockpit/chat/subagents/angular/e2e/c-subagents.spec.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// SPDX-License-Identifier: MIT
import { test, expect } from '@playwright/test';
import { sendPromptAndWait } from '../../../../../libs/e2e-harness/src';
import { submitAndWaitForResponse } from '../../../../../libs/e2e-harness/src';

const PROMPT = 'Plan a trip from LAX to JFK';

test('c-subagents: orchestrator dispatches task subagents, summary surfaces in bubble', async ({
page,
}) => {
const bubble = await sendPromptAndWait(page, PROMPT);
const bubble = await submitAndWaitForResponse(page, PROMPT);

// The chat-tool-calls primitive renders a collapsible button labeled
// "Called task N times" for the orchestrator's task dispatches. Asserting
// it's in the DOM proves the orchestrator emitted real task tool_calls.
//
// We don't assert on <chat-subagent-card> because that primitive only
// renders while a subagent is in a RUNNING state — once all subagents
// complete (which is the state sendPromptAndWait returns at, since the
// complete (which is the state submitAndWaitForResponse returns at, since the
// agent is idle), the cards are filtered out of the DOM. The tool-call
// chip is the durable signal.
const taskChip = page.getByRole('button', { name: /called task|task/i }).first();
Expand Down
4 changes: 2 additions & 2 deletions cockpit/chat/tool-calls/angular/e2e/c-tool-calls.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: MIT
import { test, expect } from '@playwright/test';
import { sendPromptAndWait } from '../../../../../libs/e2e-harness/src';
import { submitAndWaitForResponse } from '../../../../../libs/e2e-harness/src';

const PROMPT = "What's the status of UA123?";

test('c-tool-calls: parent dispatches lookup_flight tool, continuation surfaces flight data', async ({ page }) => {
const bubble = await sendPromptAndWait(page, PROMPT);
const bubble = await submitAndWaitForResponse(page, PROMPT);

// The chat-tool-calls primitive renders a card per tool call. Card label
// includes the tool name. Asserting it's in the DOM proves the parent's
Expand Down
4 changes: 2 additions & 2 deletions cockpit/langgraph/streaming/angular/e2e/streaming.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
import { test, expect } from '@playwright/test';
import { sendPromptAndWait } from '../../../../../libs/e2e-harness/src';
import { submitAndWaitForResponse } from '../../../../../libs/e2e-harness/src';

test('streaming: assistant text from the mocked LLM renders in the cockpit chat composition', async ({ page }) => {
const bubble = await sendPromptAndWait(
const bubble = await submitAndWaitForResponse(
page,
'Tell me one quick fact about Angular signals in two sentences.',
);
Expand Down
Loading
Loading