mirror of
https://github.com/block/buzz.git
synced 2026-11-03 16:01:35 +00:00
Preserve docked channel panel close behavior
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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()}
|
||||
>
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user