mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
fix(app): keep the activity panel's column gap and follow the moved scroll owner in tests
This commit is contained in:
parent
260401f985
commit
e7787bf84f
2 changed files with 3 additions and 2 deletions
|
|
@ -841,7 +841,9 @@ test("long MCP lists stay in the viewport in a real RTL locale", async ({ page }
|
|||
await summary.getByRole("button", { name: "MCP", exact: true }).click()
|
||||
const menu = page.getByRole("group", { name: "MCP", exact: true })
|
||||
await expect(menu.locator(".session-mcp-row")).toHaveCount(30)
|
||||
await expect.poll(() => menu.evaluate((element) => element.scrollHeight > element.clientHeight)).toBe(true)
|
||||
await expect
|
||||
.poll(() => menu.locator("[data-scrollable]").evaluate((element) => element.scrollHeight > element.clientHeight))
|
||||
.toBe(true)
|
||||
await expect
|
||||
.poll(async () => {
|
||||
const bounds = (await menu.boundingBox())!
|
||||
|
|
|
|||
|
|
@ -44,7 +44,6 @@
|
|||
max-height: min(270px, var(--kb-popper-content-available-height, 270px));
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
column-gap: 8px;
|
||||
/* The capsule's hairline, so both insets round to the same device pixels. */
|
||||
border: 0.5px solid transparent;
|
||||
border-radius: 10px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue