Add first demonstrator of inline completion #102
Annotations
10 errors, 1 warning, and 1 notice
Start a server and run tests:
tests/mitoai_ui_tests/aiInlineCompleter.spec.ts#L64
1) [chromium] › mitoai_ui_tests/aiInlineCompleter.spec.ts:61:7 › default inline completion › should display inline completion
TypeError: page.routeWebSocket is not a function
62 | const replyDone = new PromiseDelegate<void>();
63 | // Mock completion request with code prefix 'def fib'
> 64 | await page.routeWebSocket(/.*\/mito-ai\/inline-completion/, ws => {
| ^
65 | ws.onMessage(message => {
66 | const payload = JSON.parse(message as string);
67 | const messageId = payload.number;
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/aiInlineCompleter.spec.ts:64:16
|
Start a server and run tests:
tests/mitoai_ui_tests/aiInlineCompleter.spec.ts#L64
1) [chromium] › mitoai_ui_tests/aiInlineCompleter.spec.ts:61:7 › default inline completion › should display inline completion
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: page.routeWebSocket is not a function
62 | const replyDone = new PromiseDelegate<void>();
63 | // Mock completion request with code prefix 'def fib'
> 64 | await page.routeWebSocket(/.*\/mito-ai\/inline-completion/, ws => {
| ^
65 | ws.onMessage(message => {
66 | const payload = JSON.parse(message as string);
67 | const messageId = payload.number;
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/aiInlineCompleter.spec.ts:64:16
|
Start a server and run tests:
tests/mitoai_ui_tests/aiInlineCompleter.spec.ts#L64
1) [chromium] › mitoai_ui_tests/aiInlineCompleter.spec.ts:61:7 › default inline completion › should display inline completion
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: page.routeWebSocket is not a function
62 | const replyDone = new PromiseDelegate<void>();
63 | // Mock completion request with code prefix 'def fib'
> 64 | await page.routeWebSocket(/.*\/mito-ai\/inline-completion/, ws => {
| ^
65 | ws.onMessage(message => {
66 | const payload = JSON.parse(message as string);
67 | const messageId = payload.number;
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/aiInlineCompleter.spec.ts:64:16
|
Start a server and run tests:
tests/mitoai_ui_tests/aiInlineCompleter.spec.ts#L64
1) [chromium] › mitoai_ui_tests/aiInlineCompleter.spec.ts:61:7 › default inline completion › should display inline completion
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: page.routeWebSocket is not a function
62 | const replyDone = new PromiseDelegate<void>();
63 | // Mock completion request with code prefix 'def fib'
> 64 | await page.routeWebSocket(/.*\/mito-ai\/inline-completion/, ws => {
| ^
65 | ws.onMessage(message => {
66 | const payload = JSON.parse(message as string);
67 | const messageId = payload.number;
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/aiInlineCompleter.spec.ts:64:16
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L21
2) [chromium] › mitoai_ui_tests/mitoai.spec.ts:11:7 › Mito AI Chat › Apply AI Generated Code ─────
Error: expect(received).toContain(expected) // indexOf
Expected substring: "df[\"C\"] = [7, 8, 9]"
Received string: "!jupyter server extension enable mito_ai"
19 |
20 | const code = await getCodeFromCell(page, 1);
> 21 | expect(code).toContain('df["C"] = [7, 8, 9]');
| ^
22 | });
23 |
24 | test('Reject AI Generated Code', async ({ page }) => {
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:21:18
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L21
2) [chromium] › mitoai_ui_tests/mitoai.spec.ts:11:7 › Mito AI Chat › Apply AI Generated Code ─────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toContain(expected) // indexOf
Expected substring: "df[\"C\"] = [7, 8, 9]"
Received string: "!jupyter server extension enable mito_ai"
19 |
20 | const code = await getCodeFromCell(page, 1);
> 21 | expect(code).toContain('df["C"] = [7, 8, 9]');
| ^
22 | });
23 |
24 | test('Reject AI Generated Code', async ({ page }) => {
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:21:18
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L21
2) [chromium] › mitoai_ui_tests/mitoai.spec.ts:11:7 › Mito AI Chat › Apply AI Generated Code ─────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toContain(expected) // indexOf
Expected substring: "df[\"C\"] = [7, 8, 9]"
Received string: "!jupyter server extension enable mito_ai"
19 |
20 | const code = await getCodeFromCell(page, 1);
> 21 | expect(code).toContain('df["C"] = [7, 8, 9]');
| ^
22 | });
23 |
24 | test('Reject AI Generated Code', async ({ page }) => {
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:21:18
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L21
2) [chromium] › mitoai_ui_tests/mitoai.spec.ts:11:7 › Mito AI Chat › Apply AI Generated Code ─────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toContain(expected) // indexOf
Expected substring: "df[\"C\"] = [7, 8, 9]"
Received string: "!jupyter server extension enable mito_ai"
19 |
20 | const code = await getCodeFromCell(page, 1);
> 21 | expect(code).toContain('df["C"] = [7, 8, 9]');
| ^
22 | });
23 |
24 | test('Reject AI Generated Code', async ({ page }) => {
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:21:18
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L58
3) [chromium] › mitoai_ui_tests/mitoai.spec.ts:38:7 › Mito AI Chat › Edit Message ────────────────
Error: expect(received).toContain(expected) // indexOf
Expected substring: "df[\"C_edited\"] = [7, 8, 9]"
Received string: "!jupyter server extension enable mito_ai"
56 |
57 | const code = await getCodeFromCell(page, 1);
> 58 | expect(code).toContain('df["C_edited"] = [7, 8, 9]');
| ^
59 |
60 | // Ensure previous messages are removed.
61 | const messageAssistantDivs = await page.locator('.message.message-assistant').count();
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:58:18
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L58
3) [chromium] › mitoai_ui_tests/mitoai.spec.ts:38:7 › Mito AI Chat › Edit Message ────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toContain(expected) // indexOf
Expected substring: "df[\"C_edited\"] = [7, 8, 9]"
Received string: "!jupyter server extension enable mito_ai"
56 |
57 | const code = await getCodeFromCell(page, 1);
> 58 | expect(code).toContain('df["C_edited"] = [7, 8, 9]');
| ^
59 |
60 | // Ensure previous messages are removed.
61 | const messageAssistantDivs = await page.locator('.message.message-assistant').count();
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:58:18
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "mitoai-jupyterlab-playwright-report-3.10", "mitoai-jupyterlab-playwright-report-3.11", "mitoai-jupyterlab-playwright-report-3.8".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Start a server and run tests
5 failed
[chromium] › mitoai_ui_tests/aiInlineCompleter.spec.ts:61:7 › default inline completion › should display inline completion
[chromium] › mitoai_ui_tests/mitoai.spec.ts:11:7 › Mito AI Chat › Apply AI Generated Code ──────
[chromium] › mitoai_ui_tests/mitoai.spec.ts:38:7 › Mito AI Chat › Edit Message ─────────────────
[chromium] › mitoai_ui_tests/mitoai.spec.ts:65:7 › Mito AI Chat › Code Diffs are applied ───────
[chromium] › mitoai_ui_tests/mitoai.spec.ts:87:7 › Mito AI Chat › Errors have fix with AI button
7 passed (2.3m)
|
Loading