Mito AI: Restore chat on refresh #433
Annotations
10 errors, 1 warning, and 1 notice
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L40
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Error: expect(locator).toBeVisible()
Locator: locator('.jp-GhostText')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.soft.toBeVisible with timeout 5000ms
- waiting for locator('.jp-GhostText')
38 | await page.waitForTimeout(THRESHOLD_IN_MS);
39 |
> 40 | expect.soft(page.locator(GHOST_SELECTOR)).toBeVisible();
| ^
41 | expect.soft((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("def sum(a, b):");
42 |
43 | await page.keyboard.press("Tab");
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:40:51
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L46
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Error: expect(locator).toContainText(expected)
Locator: getByRole('main').locator('[role="tabpanel"][id="id-cf9fd180-8f3d-44ed-8d93-ac96869ee614"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
Expected string: "return a + b"
Received string: "def sum(a, b):"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main').locator('[role="tabpanel"][id="id-cf9fd180-8f3d-44ed-8d93-ac96869ee614"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
4 × locator resolved to <div tabindex="-1" translate="no" role="textbox" autocorrect="off" spellcheck="false" class="cm-content" autocapitalize="off" aria-multiline="true" contenteditable="true" data-language="python">…</div>
- unexpected value "def sum(a, b):"
44 |
45 | expect.soft(page.locator(GHOST_SELECTOR)).toHaveCount(0);
> 46 | expect((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("return a + b");
| ^
47 | })
48 | });
49 |
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:46:79
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L46
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toContainText(expected)
Locator: getByRole('main').locator('[role="tabpanel"][id="id-2e0375e3-3ac4-4f63-82b9-51c04885fc2c"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
Expected string: "return a + b"
Received string: "def sum(a, b):"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main').locator('[role="tabpanel"][id="id-2e0375e3-3ac4-4f63-82b9-51c04885fc2c"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
4 × locator resolved to <div tabindex="-1" translate="no" role="textbox" autocorrect="off" spellcheck="false" class="cm-content" autocapitalize="off" aria-multiline="true" contenteditable="true" data-language="python">…</div>
- unexpected value "def sum(a, b):"
44 |
45 | expect.soft(page.locator(GHOST_SELECTOR)).toHaveCount(0);
> 46 | expect((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("return a + b");
| ^
47 | })
48 | });
49 |
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:46:79
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L40
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible()
Locator: locator('.jp-GhostText')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.soft.toBeVisible with timeout 5000ms
- waiting for locator('.jp-GhostText')
38 | await page.waitForTimeout(THRESHOLD_IN_MS);
39 |
> 40 | expect.soft(page.locator(GHOST_SELECTOR)).toBeVisible();
| ^
41 | expect.soft((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("def sum(a, b):");
42 |
43 | await page.keyboard.press("Tab");
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:40:51
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L46
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toContainText(expected)
Locator: getByRole('main').locator('[role="tabpanel"][id="id-b0b2577d-9a12-4506-9a1b-f70d805ee556"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
Expected string: "return a + b"
Received string: "def sum(a, b):"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main').locator('[role="tabpanel"][id="id-b0b2577d-9a12-4506-9a1b-f70d805ee556"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
3 × locator resolved to <div tabindex="-1" translate="no" role="textbox" autocorrect="off" spellcheck="false" class="cm-content" autocapitalize="off" aria-multiline="true" contenteditable="true" data-language="python">…</div>
- unexpected value "def sum(a, b):"
44 |
45 | expect.soft(page.locator(GHOST_SELECTOR)).toHaveCount(0);
> 46 | expect((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("return a + b");
| ^
47 | })
48 | });
49 |
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:46:79
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L40
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible()
Locator: locator('.jp-GhostText')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.soft.toBeVisible with timeout 5000ms
- waiting for locator('.jp-GhostText')
38 | await page.waitForTimeout(THRESHOLD_IN_MS);
39 |
> 40 | expect.soft(page.locator(GHOST_SELECTOR)).toBeVisible();
| ^
41 | expect.soft((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("def sum(a, b):");
42 |
43 | await page.keyboard.press("Tab");
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:40:51
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L46
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toContainText(expected)
Locator: getByRole('main').locator('[role="tabpanel"][id="id-8f9085f7-03db-4076-b501-cc26e08dd0d5"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
Expected string: "return a + b"
Received string: "def sum(a, b):"
Call log:
- expect.toContainText with timeout 5000ms
- waiting for getByRole('main').locator('[role="tabpanel"][id="id-8f9085f7-03db-4076-b501-cc26e08dd0d5"]').locator('.jp-NotebookPanel-notebook').first().locator('.jp-Cell[data-windowed-list-index="1"]').getByRole('textbox')
3 × locator resolved to <div tabindex="-1" translate="no" role="textbox" autocorrect="off" spellcheck="false" class="cm-content" autocapitalize="off" aria-multiline="true" contenteditable="true" data-language="python">…</div>
- unexpected value "def sum(a, b):"
44 |
45 | expect.soft(page.locator(GHOST_SELECTOR)).toHaveCount(0);
> 46 | expect((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("return a + b");
| ^
47 | })
48 | });
49 |
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:46:79
|
Start a server and run tests:
tests/mitoai_ui_tests/basicInlineComplete.spec.ts#L40
1) [chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(locator).toBeVisible()
Locator: locator('.jp-GhostText')
Expected: visible
Received: <element(s) not found>
Call log:
- expect.soft.toBeVisible with timeout 5000ms
- waiting for locator('.jp-GhostText')
38 | await page.waitForTimeout(THRESHOLD_IN_MS);
39 |
> 40 | expect.soft(page.locator(GHOST_SELECTOR)).toBeVisible();
| ^
41 | expect.soft((await page.notebook.getCellLocator(1))!.getByRole("textbox")).toContainText("def sum(a, b):");
42 |
43 | await page.keyboard.press("Tab");
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/basicInlineComplete.spec.ts:40:51
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L220
2) [chromium] › mitoai_ui_tests/mitoai.spec.ts:211:7 › Mito AI Chat › No Code blocks are displayed when active cell is empty
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 8
218 | // It should be in the AI response message, which means that it is not in the user's message.
219 | const codeMessagePartContainersCount = await page.locator('.code-block-container').count();
> 220 | expect(codeMessagePartContainersCount).toBe(1);
| ^
221 | });
222 |
223 | test('Fix error button', async ({ page }) => {
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:220:44
|
Start a server and run tests:
tests/mitoai_ui_tests/mitoai.spec.ts#L220
2) [chromium] › mitoai_ui_tests/mitoai.spec.ts:211:7 › Mito AI Chat › No Code blocks are displayed when active cell is empty
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 2
218 | // It should be in the AI response message, which means that it is not in the user's message.
219 | const codeMessagePartContainersCount = await page.locator('.code-block-container').count();
> 220 | expect(codeMessagePartContainersCount).toBe(1);
| ^
221 | });
222 |
223 | test('Fix error button', async ({ page }) => {
at /home/runner/work/mito/mito/tests/mitoai_ui_tests/mitoai.spec.ts:220:44
|
Install dependencies
You are using a frozen webkit browser which does not receive updates anymore on ubuntu20.04-x64. Please update to the latest version of your operating system to test up-to-date browsers.
|
Start a server and run tests
3 failed
[chromium] › mitoai_ui_tests/basicInlineComplete.spec.ts:27:9 › inline completion integration test › Inline completion
[chromium] › mitoai_ui_tests/mitoai.spec.ts:211:7 › Mito AI Chat › No Code blocks are displayed when active cell is empty
[chromium] › mitoai_ui_tests/shortcuts.spec.ts:24:9 › Mito AI Shortcuts › Accept AI generated code
2 skipped
23 passed (4.7m)
|
Loading