fix(webui): add a close control to the expanded context panel (#6629)
This commit is contained in:
1 parent
27f1a836b5
commit
e3a1af2ed3
5 files changed
+32
-9
No files matched your search
@@ -53,6 +53,15 @@ test("graph keyboard controls, pointer hit targets, pixels and replay agree", as
|
||||
await expect(page.getByRole("progressbar")).toHaveAttribute("aria-valuenow", "20");
|
||||
});
|
||||
|
||||
test("closes the context sidebar from its own control", async ({ page }) => {
|
||||
await page.goto("/browser/context-graph.html?single&drawer");
|
||||
await page.getByTestId("composer-context-usage").click();
|
||||
const sidebar = page.getByTestId("context-sidebar");
|
||||
await expect(sidebar).toBeVisible();
|
||||
await sidebar.getByRole("button", { name: "Close" }).click();
|
||||
await expect(sidebar).toHaveCount(0);
|
||||
});
|
||||
|
||||
test.describe("touch graph", () => {
|
||||
test.use({ viewport: { width: 390, height: 740 }, hasTouch: true });
|
||||
test("recovers batched drawer visibility, replays and opens a file by touch", async ({ page }) => {
|
||||
|
||||
Reference in new issue
Block a user