дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
The built-in ClickHouse HTTP driver gives each SQL console its own named session: a second console finishes while the first one runs, and repeated statements in one console keep their SET values and temporary tables. Result paging, Explain and Stop use the same console identity, and closing the console's last editor or result releases it. Requests without a console stay stateless and can run concurrently. The PR also carries the TODO layout and bookmarks fixture fixes from #6507/#6458. Closes #6433 Co-authored-by: principalwater <[email protected]>
37 рядки
1.8 KiB
TypeScript
37 рядки
1.8 KiB
TypeScript
import { expect, test } from "./fixtures";
|
|
|
|
test("keeps the file count visible beside a long directory in the TODO pane", async ({ workbench: page }) => {
|
|
await page.setViewportSize({ width: 900, height: 760 });
|
|
await page.evaluate(async () => {
|
|
const projectModule = "/src/platform/project.ts";
|
|
const todoModule = "/src/features/todo/store.ts";
|
|
const layoutModule = "/src/workbench/toolwindows/store.ts";
|
|
const { useProject } = await import(/* @vite-ignore */ projectModule);
|
|
const { setLiveTodos } = await import(/* @vite-ignore */ todoModule);
|
|
const { showToolWindow } = await import(/* @vite-ignore */ layoutModule);
|
|
const directory = "src/features/checkout/shared/services/with-a-long-directory-name/for-order-processing";
|
|
const path = `${useProject.getState().project.root}/${directory}/orders.ts`;
|
|
// The browser's startup scan clears the scan cache.
|
|
setLiveTodos(path, [{ path, line: 8, col: 3, keyword: "TODO", text: "TODO: validate orders" }]);
|
|
showToolWindow("todo", true);
|
|
});
|
|
|
|
const pane = page.locator('[data-toolwindow="todo"]');
|
|
const toolbar = pane.getByRole("toolbar", { name: "TODO actions" });
|
|
await expect(toolbar).toHaveAttribute("aria-orientation", "vertical");
|
|
const tree = pane.getByRole("tree", { name: "TODO items" });
|
|
const fileName = tree.getByText("orders.ts", { exact: true });
|
|
await expect(fileName).toBeVisible();
|
|
await expect.poll(() => fileName.evaluate((element) => element.scrollWidth <= element.clientWidth)).toBe(true);
|
|
const count = tree.getByText("1 item", { exact: true });
|
|
await expect(count).toBeVisible();
|
|
await expect
|
|
.poll(() =>
|
|
count.evaluate(
|
|
(element) =>
|
|
element.getBoundingClientRect().right <= element.closest('[role="tree"]')!.getBoundingClientRect().right,
|
|
),
|
|
)
|
|
.toBe(true);
|
|
});
|