Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
8ef81eb
test(cockpit): run React chat/input and chat/theming e2e on aimock
blove Nov 18, 2026
c9240d0
test(website): drive the Theming preview on aimock; opt-in reasoning …
blove Nov 19, 2026
bf82604
test(website): expect the theming preview's aimock backend flag in th…
blove Nov 19, 2026
d56a414
test(cockpit): run React chat tool-calls/subagents/interrupts e2e on …
blove Nov 18, 2026
1299de2
test(cockpit): run React chat threads/timeline e2e on aimock
blove Nov 18, 2026
72aeb69
test(cockpit): run React langgraph streaming/interrupts/memory/persis…
blove Nov 18, 2026
0ab9c33
test(website): drive the langgraph streaming/interrupts/memory/persis…
blove Nov 19, 2026
165b541
test(website): expect the langgraph previews' aimock backend flags in…
blove Nov 19, 2026
c73bb36
test(cockpit): run React langgraph client-tools/deployment-runtime e2…
blove Nov 19, 2026
cb36ed4
test(website): drive the langgraph client-tools/deployment-runtime pr…
blove Nov 19, 2026
ce74c14
test(website): expect the client-tools and deployment-runtime preview…
blove Nov 19, 2026
a97cce3
test(cockpit): run React langgraph time-travel/durable-execution e2e …
blove Nov 19, 2026
880cb67
test(website): drive the langgraph time-travel/durable-execution prev…
blove Nov 19, 2026
bf4d5c8
test(website): expect the time-travel and durable-execution previews'…
blove Nov 19, 2026
ecc8289
test(cockpit): run React deep-agents/filesystem e2e, integration and …
blove Nov 19, 2026
d84f330
test(cockpit): run React deep-agents/planning e2e, integration and we…
blove Nov 19, 2026
8b61d43
test(cockpit): run React and Angular deep-agents/memory e2e and websi…
blove Nov 19, 2026
4077e22
test(cockpit): run React deep-agents/skills e2e and website preview o…
blove Nov 19, 2026
109dc1a
test(cockpit): run React deep-agents/subagents e2e and website previe…
blove Nov 19, 2026
87ee5bd
docs(cockpit): record batch 5 (deep-agents) aimock migration; select …
blove Nov 19, 2026
1899b9a
test(website): boot preview backends at startup only where specs driv…
blove Nov 19, 2026
8112517
test(website): config specs follow the deep-agents preview commands a…
blove Nov 19, 2026
610689a
test(cockpit): run React chat/debug e2e, website preview and native-s…
blove Nov 19, 2026
c885adc
test(ci): repin the cockpit e2e job steps after the debug proof step …
blove Nov 19, 2026
c980043
test(cockpit): run React ag-ui/streaming e2e and website preview on a…
blove Nov 19, 2026
fd5c396
test(cockpit): run React ag-ui/interrupts e2e and website preview on …
blove Nov 19, 2026
44c7f75
test(cockpit): run React ag-ui/tool-views e2e and website preview on …
blove Nov 19, 2026
db2bba2
test(cockpit): run React ag-ui/json-render e2e and website preview on…
blove Nov 19, 2026
af87fbe
test(cockpit): run React ag-ui/subagents e2e and website preview on a…
blove Nov 19, 2026
87f655d
docs(cockpit): record batch 6a (AG-UI) aimock migration and the 6b split
blove Nov 19, 2026
05150f7
test(cockpit): AG-UI identities and e2e setups carry their aimock bac…
blove Nov 19, 2026
5264a47
test(cockpit): run React ag-ui/client-tools e2e and website preview o…
blove Nov 19, 2026
d9ac3e2
docs(cockpit): record batch 6b (ag-ui/client-tools) and split the A2U…
blove Nov 19, 2026
179a681
test(cockpit): AG-UI identities carry the fixed aimock port
blove Nov 19, 2026
6941934
test(cockpit): run React chat/generative-ui e2e, integration and webs…
blove Nov 19, 2026
56bd067
docs(cockpit): record batch 2b (chat/generative-ui)
blove Nov 19, 2026
e113e8d
test(cockpit): run React ag-ui/a2ui e2e and website preview on aimock…
blove Nov 19, 2026
64a624a
test(cockpit): run React chat/a2ui e2e, packed-consumer probe and web…
blove Nov 19, 2026
c9327f4
test(cockpit): run React runtime e2e and website previews on aimock +…
blove Nov 19, 2026
869db40
test(ci): re-pin the Cockpit proof step hash after rebasing the aimoc…
blove Nov 19, 2026
f3d08b5
test(cockpit): subgraphs child fixtures use state after the values re…
blove Nov 19, 2026
ff403e2
Merge main: port the connected thread sidebar e2e (#1637) to aimock
blove Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 6 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
cache: npm
- run: npm ci
- name: Test CI scope classifier
run: node --test scripts/configure-ci-apt.spec.mjs scripts/install-playwright-browser.spec.mjs scripts/commit-staged-via-api.spec.mjs scripts/ci-queue-evidence.spec.mjs scripts/ci-scope.spec.mjs scripts/cockpit-dependencies.spec.mjs scripts/cockpit-matrix.spec.mjs scripts/cockpit-frontend-matrix.spec.mjs scripts/cockpit-ports.spec.mjs scripts/cockpit-runtime-bridge-coverage.spec.mjs scripts/react-cockpit/ag-ui-client-tools-configuration.spec.mjs scripts/react-cockpit/ag-ui-client-tools-preparation.spec.mjs scripts/react-cockpit/runtimes-microsoft-agent-framework-configuration.spec.mjs scripts/react-cockpit/prepare-native-maf-fixture.spec.mjs scripts/react-cockpit/runtimes-aws-strands-configuration.spec.mjs scripts/react-cockpit/prepare-native-strands-fixture.spec.mjs scripts/react-cockpit/chat-theming-configuration.spec.mjs scripts/react-cockpit/consumer-preparation.spec.mjs scripts/website-angular-startup.spec.mjs scripts/website-agents-startup.spec.mjs
run: node --test scripts/configure-ci-apt.spec.mjs scripts/install-playwright-browser.spec.mjs scripts/commit-staged-via-api.spec.mjs scripts/ci-queue-evidence.spec.mjs scripts/ci-scope.spec.mjs scripts/cockpit-dependencies.spec.mjs scripts/cockpit-matrix.spec.mjs scripts/cockpit-frontend-matrix.spec.mjs scripts/cockpit-ports.spec.mjs scripts/cockpit-runtime-bridge-coverage.spec.mjs scripts/react-cockpit/ag-ui-client-tools-configuration.spec.mjs scripts/react-cockpit/runtimes-microsoft-agent-framework-configuration.spec.mjs scripts/react-cockpit/runtimes-aws-strands-configuration.spec.mjs scripts/react-cockpit/chat-theming-configuration.spec.mjs scripts/react-cockpit/consumer-preparation.spec.mjs scripts/website-angular-startup.spec.mjs scripts/website-agents-startup.spec.mjs
- name: Test Debug static configuration without Python workers
run: node --test --test-name-pattern='^debug ' scripts/react-cockpit/chat-debug-configuration.spec.mjs
- name: Validate CI workflow guards
Expand Down Expand Up @@ -328,7 +328,7 @@ jobs:
- name: Verify production builds strip the devtools hook
if: matrix.lane == 'packages'
run: npx nx run chat:test-devtools-bundle
- name: Verify canonical A2UI native fixtures
- name: Verify canonical A2UI native graph
if: matrix.lane == 'packages'
timeout-minutes: 15
env:
Expand All @@ -351,10 +351,9 @@ jobs:
PYTHONDONTWRITEBYTECODE=1 LANGSMITH_TRACING=false LANGCHAIN_TRACING_V2=false \
"$A2UI_FIXTURE_ENV/bin/python" -E -B -m unittest discover -s cockpit/chat/a2ui/python/tests -p test_booking_form.py
env -i HOME="$fixture_home" PATH="$fixture_path" LANG=C.UTF-8 \
A2UI_FIXTURE_UV="$uv_path" A2UI_FIXTURE_PYTHON="$python_path" \
A2UI_FIXTURE_ENV="$A2UI_FIXTURE_ENV" A2UI_FIXTURE_CACHE="$A2UI_FIXTURE_CACHE" \
UV_CACHE_DIR="$A2UI_FIXTURE_CACHE" UV_PYTHON="$python_path" \
PYTHONDONTWRITEBYTECODE=1 LANGSMITH_TRACING=false LANGCHAIN_TRACING_V2=false \
"$node_path" --test --test-concurrency=1 scripts/react-cockpit/chat-a2ui-fixture.spec.mjs scripts/react-cockpit/chat-a2ui-configuration.spec.mjs scripts/react-cockpit/chat-a2ui-host.spec.mjs scripts/react-cockpit/chat-a2ui-readiness.spec.mjs
"$node_path" --test --test-concurrency=1 --test-force-exit scripts/react-cockpit/chat-a2ui-configuration.spec.mjs scripts/react-cockpit/chat-a2ui-native-probe.spec.mjs
- name: Configure bounded Ubuntu package downloads
if: matrix.lane == 'packages'
run: sudo "$(command -v node)" scripts/configure-ci-apt.mjs
Expand Down Expand Up @@ -1112,11 +1111,6 @@ jobs:
run: |
npx nx test "${{ matrix.cap.angular }}" --reporters=default --skip-nx-cache
npx nx lint "${{ matrix.cap.angular }}" --skip-nx-cache
- name: Verify canonical client tools fixture ownership
if: matrix.cap.angular == 'cockpit-ag-ui-client-tools-react'
run: |
npx nx run cockpit-ag-ui-client-tools-react:prepare-fixture --skip-nx-cache
node --test scripts/react-cockpit/ag-ui-client-tools-fixture.spec.mjs
- name: Prepare native A2UI proof ownership
if: matrix.cap.angular == 'cockpit-ag-ui-a2ui-react'
run: |
Expand All @@ -1136,29 +1130,12 @@ jobs:
mkdirSync(retain, { recursive: true });
writeFileSync(join(retain, 'provenance.json'), JSON.stringify(provenance, null, 2) + '\n', { flag: 'wx' });
NODE
timeout 1200s node --test --test-concurrency=1 --test-timeout=120000 scripts/react-cockpit/ag-ui-a2ui-configuration.spec.mjs scripts/react-cockpit/ag-ui-a2ui-preparation.spec.mjs scripts/react-cockpit/ag-ui-a2ui-fixture.spec.mjs scripts/react-cockpit/ag-ui-a2ui-native-probe.spec.mjs
- name: Verify native MAF fixture ownership
if: matrix.cap.angular == 'cockpit-runtimes-microsoft-agent-framework-react'
run: |
npx nx run cockpit-runtimes-microsoft-agent-framework-react:prepare-fixture --skip-nx-cache
node --test --test-concurrency=1 scripts/react-cockpit/native-maf-fixture.spec.mjs fixtures/react-parity/native-maf-react/server.spec.mjs
python -m unittest discover -s fixtures/react-parity/native-maf-react -p test_model.py
- name: Verify native Strands fixture ownership
if: matrix.cap.angular == 'cockpit-runtimes-aws-strands-react'
run: |
npx nx run cockpit-runtimes-aws-strands-react:prepare-fixture --skip-nx-cache
node --test --test-concurrency=1 scripts/react-cockpit/native-strands-fixture.spec.mjs fixtures/react-parity/native-strands-react/server.spec.mjs
python -m unittest discover -s fixtures/react-parity/native-strands-react -p test_model.py
- name: Verify native Theming fixture ownership
if: matrix.cap.angular == 'cockpit-chat-theming-react'
run: |
npx nx run cockpit-chat-theming-python:test --skip-nx-cache
node --test --test-concurrency=1 scripts/react-cockpit/chat-theming-fixture.spec.mjs
timeout 1200s node --test --test-concurrency=1 --test-timeout=120000 scripts/react-cockpit/ag-ui-a2ui-configuration.spec.mjs scripts/react-cockpit/ag-ui-a2ui-preparation.spec.mjs scripts/react-cockpit/ag-ui-a2ui-native-probe.spec.mjs
- name: Verify native Debug fixture and installed session ownership
if: matrix.cap.angular == 'cockpit-chat-debug-react'
run: |
npx nx run cockpit-chat-debug-python:test --skip-nx-cache
node --test --test-concurrency=1 scripts/react-cockpit/chat-debug-configuration.spec.mjs scripts/react-cockpit/chat-debug-fixture.spec.mjs
node --test --test-concurrency=1 scripts/react-cockpit/chat-debug-configuration.spec.mjs
npx nx build core --skip-nx-cache
node scripts/react-cockpit/chat-debug-native-session-probe.mjs
- name: nx e2e ${{ matrix.cap.angular }}
Expand Down Expand Up @@ -1232,12 +1209,6 @@ jobs:
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57
with:
python-version: '3.12'
- name: Prepare frozen canonical client tools browser producer
if: matrix.suite == 'ag-ui'
run: node scripts/react-cockpit/prepare-ag-ui-client-tools-fixture.mjs
- name: Prepare frozen canonical A2UI browser producer
if: matrix.suite == 'ag-ui'
run: node scripts/react-cockpit/prepare-ag-ui-a2ui-fixture.mjs
- name: Configure bounded Ubuntu package downloads
run: sudo "$(command -v node)" scripts/configure-ci-apt.mjs
- name: Install Chromium
Expand Down
6 changes: 3 additions & 3 deletions apps/website/agents-startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ type WebServer = Exclude<
unknown[] | undefined
>;

/** Each original smoke must still succeed before its own runtime starts. */
/** The five Deep Agents preview servers start as one pool with one readiness budget. */
export function poolAgentServers(servers: WebServer[]): WebServer[] {
const matches = servers.flatMap((server, index) => {
const match =
/^npx nx run cockpit-deep-agents-(planning|filesystem|subagents|skills|memory)-python:smoke && node scripts\/react-cockpit\/serve\.mjs deep-agents-\1 --no-parent$/.exec(
/^node scripts\/react-cockpit\/serve\.mjs deep-agents-(planning|filesystem|subagents|skills|memory) --no-parent --backend$/.exec(
server.command
);
return match ? [{ index, topic: match[1] }] : [];
Expand All @@ -20,7 +20,7 @@ export function poolAgentServers(servers: WebServer[]): WebServer[] {
matches.some((match, i) => match.index !== matches[0].index + i)
) {
throw new Error(
'Agents startup requires the original contiguous five unique smoke/server chains'
'Agents startup requires the original contiguous five unique preview servers'
);
}
const first = matches[0].index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ npx nx build cockpit-ag-ui-client-tools-react
npx nx e2e cockpit-ag-ui-client-tools-react
~~~

The e2e target depends on frozen canonical fixture preparation. For explicit preparation, run **npx nx run cockpit-ag-ui-client-tools-react:prepare-fixture**. The build installs the real private package artifacts with strict types. Deterministic offline browser checks use the actual canonical graph and locked AG-UI adapter with scripted model responses over HTTP/SSE. They verify local execution, physical continuations, and owned cleanup; they do not prove a live model-provider request. Docs, Code, and Run select this same source implementation.
The build installs the real private package artifacts with strict types. Deterministic offline browser checks run the actual graph behind the locked AG-UI adapter, with scripted model responses replayed by aimock, over HTTP/SSE. They verify local execution and physical continuations, and that the model receives each exact local result; they do not prove a live model-provider request. Docs, Code, and Run select this same source implementation.

<ExampleCode file="cockpit/ag-ui/client-tools/react/project.json" />
43 changes: 43 additions & 0 deletions apps/website/e2e/dev-warmup-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { chromium, type FullConfig } from '@playwright/test';

/**
* Playwright globalSetup for local runs against `next dev`, which compiles
* each route (and the client chunks it loads lazily) on first request.
* With several workers, the first tests all hit uncompiled routes at once;
* the compiles then compete for CPU and a hydration, frame or framework-switch
* check misses its window. Readiness of the dev server's port says nothing
* about that, so this visits the shared docs route once, in every workspace
* mode and both frameworks, before any worker starts.
*/
const pages = [
'/',
'/docs/angular/deep-agents/capabilities/memory',
'/docs/react/deep-agents/capabilities/memory',
'/docs/react/deep-agents/capabilities/memory?mode=code',
'/docs/react/deep-agents/capabilities/memory?mode=run',
];

export default async function warmUp(config: FullConfig) {
const baseURL = config.projects[0]?.use.baseURL;
if (!baseURL) return;
const browser = await chromium.launch();
try {
const page = await browser.newPage();
for (const path of pages) {
await page.goto(new URL(path, baseURL).toString(), {
waitUntil: 'load',
timeout: 300_000,
});
const shell = page.locator('[data-workspace-shell]');
if (await shell.count())
await shell.waitFor({ state: 'attached', timeout: 300_000 });
await page
.locator('[data-workspace-shell][data-hydrated="true"]')
.or(page.locator('body:not(:has([data-workspace-shell]))'))
.first()
.waitFor({ timeout: 300_000 });
}
} finally {
await browser.close();
}
}
17 changes: 14 additions & 3 deletions apps/website/e2e/learning-workbench.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// The preview server (`serve.mjs <example> --backend`) runs the real graph under
// `langgraph dev` on aimock fixtures shared with the Angular example; controls
// come from scripts/react-cockpit/langgraph-proxy.mjs.
import { test, expect, type Page, type FrameLocator } from '@playwright/test';
import { selectFramework } from './fixtures/framework-controls';

Expand Down Expand Up @@ -208,8 +211,12 @@ for (const framework of ['react', 'angular'] as const) {
if (request.method() === 'POST' && path.endsWith('/runs/stream'))
submittedRuns.push(path);
});
if (framework === 'react')
if (framework === 'react') {
await request.post('http://127.0.0.1:4600/__reset');
await request.post('http://127.0.0.1:4600/__ready', { timeout: 180000 });
// "First" streams "Live partial" + " complete"; hold after the first chunk.
await request.post('http://127.0.0.1:4600/__hold/stream', { data: { afterText: 'Live partial' } });
}
const caseId = `learning-${framework}-${testInfo.retry}`;
await request.delete(`http://127.0.0.1:4399/__requests/${caseId}`);
const host = await openWorkbench(page, framework);
Expand Down Expand Up @@ -417,6 +424,8 @@ test('React stop and failure remain distinct from application call settlement',
request,
}) => {
await request.post('http://127.0.0.1:4600/__reset');
await request.post('http://127.0.0.1:4600/__ready', { timeout: 180000 });
await request.post('http://127.0.0.1:4600/__hold/stream', { data: { afterText: 'Live partial' } });
const host = await openWorkbench(page, 'react');
await host
.getByRole('button', { name: 'Live conversation', exact: true })
Expand Down Expand Up @@ -458,6 +467,8 @@ test('framework changes dispose an active React stream and restore opt-in replay
request,
}) => {
await request.post('http://127.0.0.1:4600/__reset');
await request.post('http://127.0.0.1:4600/__ready', { timeout: 180000 });
await request.post('http://127.0.0.1:4600/__hold/stream', { data: { afterText: 'Live partial' } });
const host = await openWorkbench(page, 'react');
await host
.getByRole('button', { name: 'Live conversation', exact: true })
Expand All @@ -471,7 +482,7 @@ test('framework changes dispose an active React stream and restore opt-in replay
async () =>
(
await (await request.get('http://127.0.0.1:4600/__lifetime')).json()
).active
).activeStream
)
.toBe(true);
await selectFramework(page, 'angular');
Expand All @@ -481,7 +492,7 @@ test('framework changes dispose an active React stream and restore opt-in replay
async () =>
(
await (await request.get('http://127.0.0.1:4600/__lifetime')).json()
).active
).activeStream
)
.toBe(false);
});
8 changes: 4 additions & 4 deletions apps/website/e2e/react-ag-ui-a2ui-preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ test.afterEach(async ({ page, request }, testInfo) => {
});
expect(observed?.requests).toEqual([]);
expect(observed?.errors).toEqual([]);
const lifetimeReceipt = await (
await request.get('http://127.0.0.1:4647/__lifetime')
).json();
expect(lifetimeReceipt.current.requests).toEqual([]);
// The recording proxy saw no agent request (scripts/react-cockpit/ag-ui-proxy.mjs).
expect(
await (await request.get('http://127.0.0.1:4647/__requests')).json()
).toEqual([]);
expect((await request.post('http://127.0.0.1:4647/__reset')).ok()).toBe(true);
});

Expand Down
28 changes: 12 additions & 16 deletions apps/website/e2e/react-ag-ui-client-tools-preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ interface Message { id: string; role: string; content: string; toolCallId?: stri
interface RecordRow {
body: { threadId: string; runId: string; messages: Message[]; tools: { name: string }[] };
events: { type: string; messages?: Message[] }[];
observations: { socketAttempts: string[]; modelMessages: { type: string; id?: string; tool_call_id?: string; content: string }[][] };
/** Every model call so far, from aimock's request journal (scripts/react-cockpit/ag-ui-proxy.mjs). */
modelMessages: { role: string; tool_call_id?: string; content: string }[][];
}
async function records(request: APIRequestContext): Promise<RecordRow[]> {
return (await request.get(origin + '/__requests')).json();
const wire = await (await request.get(origin + '/__requests')).json();
const journal: { body: { messages?: RecordRow['modelMessages'][number] } }[] = await (await request.get(origin + '/__model-requests')).json();
const modelMessages = journal.map(entry => entry.body.messages ?? []);
return wire.map((row: RecordRow) => ({ ...row, modelMessages }));
}
async function hydrated(page: Page, mode: string) {
await expect(page.locator('[data-workspace-shell]')).toHaveAttribute('data-hydrated', 'true');
Expand All @@ -31,34 +35,26 @@ function native(wire: RecordRow[], count: number) {
expect(new Set(wire.map(row => row.body.runId)).size).toBe(count);
for (const row of wire) {
expect(row.body.tools.map(tool => tool.name)).toEqual(names);
expect(row.observations.socketAttempts).toEqual([]);
const model = row.observations.modelMessages.at(-1) ?? [];
const snapshot = row.events.filter(event => event.type === 'MESSAGES_SNAPSHOT').at(-1)?.messages ?? [];
for (const result of row.body.messages.filter(message => message.role === 'tool')) {
expect(row.body.messages.filter(message => message.toolCalls?.some(call => call.id === result.toolCallId))).toHaveLength(1);
expect(model.filter(message => message.type === 'tool' && message.id === result.id && message.tool_call_id === result.toolCallId && message.content === result.content)).toHaveLength(1);
// The model received the browser's exact result for that call.
expect(row.modelMessages.some(messages => messages.filter(message => message.role === 'tool' && message.tool_call_id === result.toolCallId && message.content === result.content).length === 1)).toBe(true);
expect(snapshot.filter(message => message.role === 'tool' && message.id === result.id && message.content === result.content)).toHaveLength(1);
}
}
}
test.describe('native React AG-UI Client Tools workspace', () => {
test.describe.configure({ mode: 'serial' });
test.beforeEach(async ({ request }) => {
test.skip(Boolean(process.env['BASE_URL']), 'Canonical offline ownership is verified locally');
test.skip(Boolean(process.env['BASE_URL']), 'The real AG-UI server on aimock is verified locally');
expect((await request.post(origin + '/__reset')).ok()).toBe(true);
});
test.afterEach(async ({ page, request }, info) => {
if (process.env['BASE_URL']) return;
// Both success and assertion failure dispose the iframe before closing its exact worker owner.
try {
await page.goto('about:blank');
const wire = await records(request);
await writeFile(info.outputPath('native-wire.json'), JSON.stringify(wire, null, 2));
} finally {
const stats = await (await request.post(origin + '/__finish')).json();
await writeFile(info.outputPath('owned-fixture-receipt.json'), JSON.stringify(stats, null, 2));
expect(Object.values(stats.closed.at(-1).closure).every(Boolean)).toBe(true);
}
await page.goto('about:blank');
const wire = await records(request);
await writeFile(info.outputPath('native-wire.json'), JSON.stringify(wire, null, 2));
});
test('actual Docs, Code and Run retain native identity, source bytes and six inert presets', async ({ page, request }, info) => {
await page.goto(reactRoute + '?topicProof=b4');
Expand Down
6 changes: 4 additions & 2 deletions apps/website/e2e/react-ag-ui-interrupts-preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ for (const phase of ['paused', 'resume']) {
await frame.getByRole('button', { name: 'Send', exact: true }).click();
await expect(frame.getByRole('status')).toHaveText('Awaiting your decision.');
if (phase === 'resume') {
// The resume run streams no text: hold it right after it starts
// (scripts/react-cockpit/ag-ui-proxy.mjs).
await request.post(origin + '/__hold/stream', { data: { afterType: 'RUN_STARTED' } });
await frame.getByRole('button', { name: 'Issue refund', exact: true }).click();
await expect(frame.getByRole('region', { name: 'Conversation', exact: true })).toContainText('Live partial');
expect((await (await request.get(origin + '/__lifetime')).json()).active).toBe(true);
await expect.poll(async () => (await (await request.get(origin + '/__lifetime')).json()).active).toBe(true);
}
const oldFrame = await page.locator('iframe').elementHandle();
await selectFramework(page, 'angular');
Expand Down
Loading
Loading