Preserve docked channel panel close behavior

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Thomas Petersen
2026-06-16 23:37:43 -04:00
parent 3c133984ff
commit 2d7e8798ff
3 changed files with 3 additions and 2 deletions

View File

@@ -319,6 +319,7 @@ export function ChannelManagementSheet({
: "bg-background",
)}
data-testid="channel-management-sheet"
onEscapeKeyDown={(event) => event.preventDefault()}
onInteractOutside={(event) => event.preventDefault()}
onPointerDownOutside={(event) => event.preventDefault()}
>

View File

@@ -171,7 +171,7 @@ test.describe("channel controls screenshots", () => {
page.getByRole("dialog", { name: "Edit channel" }),
).toHaveCount(0);
await page.keyboard.press("Escape");
await page.getByTestId("channel-management-close").click();
await expect(
page.getByTestId("channel-management-sheet"),
).not.toBeVisible();

View File

@@ -36,7 +36,7 @@ async function openChannelEditDialog(page: import("@playwright/test").Page) {
}
async function closeChannelManagement(page: import("@playwright/test").Page) {
await page.keyboard.press("Escape");
await page.getByTestId("channel-management-close").click();
await expect(page.getByTestId("channel-management-sheet")).not.toBeVisible();
}