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
2 changes: 1 addition & 1 deletion .github/workflows/aimock-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Run drift check
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: npx nx run examples-chat-aimock-e2e:drift --skip-nx-cache
run: npx nx run examples-chat-angular:drift --skip-nx-cache
- name: Open issue on drift
if: failure()
uses: actions/github-script@v8
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ jobs:
run: uv sync
- run: npx nx run examples-chat-python:smoke --skip-nx-cache

examples-chat-aimock-e2e:
name: examples/chat — aimock e2e
examples-chat-e2e:
name: examples/chat — e2e
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
Expand All @@ -143,13 +143,13 @@ jobs:
- working-directory: examples/chat/python
run: uv sync
- run: npx playwright install --with-deps chromium
- run: npx nx run examples-chat-aimock-e2e:test --skip-nx-cache
- run: npx nx e2e examples-chat-angular --skip-nx-cache
- name: Upload Playwright trace on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: aimock-e2e-trace
path: examples/chat/aimock-e2e/test-results/
name: examples-chat-e2e-trace
path: examples/chat/angular/e2e/test-results/
retention-days: 7

cockpit-e2e:
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
cockpit-secret-integration,
cockpit-deploy-smoke,
examples-chat-smoke,
examples-chat-aimock-e2e,
examples-chat-e2e,
cockpit-e2e,
website-e2e,
]
Expand Down
2 changes: 1 addition & 1 deletion cockpit/chat/subagents/angular/e2e/c-subagents.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { test, expect } from '@playwright/test';
import { sendPromptAndWait } from '../../../../../libs/internal/aimock-harness/src';
import { sendPromptAndWait } from '../../../../../libs/e2e-harness/src';

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

Expand Down
2 changes: 1 addition & 1 deletion cockpit/chat/subagents/angular/e2e/global-setup-impl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { resolve } from 'node:path';
import { createGlobalSetup } from '../../../../../libs/internal/aimock-harness/src';
import { createGlobalSetup } from '../../../../../libs/e2e-harness/src';

export default createGlobalSetup({
langgraphCwd: 'cockpit/langgraph/streaming/python',
Expand Down
2 changes: 1 addition & 1 deletion cockpit/chat/subagents/angular/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export default defineConfig({
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
globalSetup: './global-setup-impl.ts',
globalTeardown: require.resolve('../../../../../libs/internal/aimock-harness/src/global-teardown'),
globalTeardown: require.resolve('../../../../../libs/e2e-harness/src/global-teardown'),
});
2 changes: 1 addition & 1 deletion cockpit/chat/tool-calls/angular/e2e/c-tool-calls.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { test, expect } from '@playwright/test';
import { sendPromptAndWait } from '../../../../../libs/internal/aimock-harness/src';
import { sendPromptAndWait } from '../../../../../libs/e2e-harness/src';

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

Expand Down
2 changes: 1 addition & 1 deletion cockpit/chat/tool-calls/angular/e2e/global-setup-impl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { resolve } from 'node:path';
import { createGlobalSetup } from '../../../../../libs/internal/aimock-harness/src';
import { createGlobalSetup } from '../../../../../libs/e2e-harness/src';

export default createGlobalSetup({
langgraphCwd: 'cockpit/langgraph/streaming/python',
Expand Down
2 changes: 1 addition & 1 deletion cockpit/chat/tool-calls/angular/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export default defineConfig({
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
globalSetup: './global-setup-impl.ts',
globalTeardown: require.resolve('../../../../../libs/internal/aimock-harness/src/global-teardown'),
globalTeardown: require.resolve('../../../../../libs/e2e-harness/src/global-teardown'),
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { resolve } from 'node:path';
import { createGlobalSetup } from '../../../../../libs/internal/aimock-harness/src';
import { createGlobalSetup } from '../../../../../libs/e2e-harness/src';

export default createGlobalSetup({
langgraphCwd: 'cockpit/langgraph/streaming/python',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export default defineConfig({
},
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
globalSetup: './global-setup-impl.ts',
globalTeardown: require.resolve('../../../../../libs/internal/aimock-harness/src/global-teardown'),
globalTeardown: require.resolve('../../../../../libs/e2e-harness/src/global-teardown'),
});
2 changes: 1 addition & 1 deletion cockpit/langgraph/streaming/angular/e2e/streaming.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
import { test, expect } from '@playwright/test';
import { sendPromptAndWait } from '../../../../../libs/internal/aimock-harness/src';
import { sendPromptAndWait } 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(
Expand Down
Loading
Loading