From b25651a7a4665b8eed1fc96e6d5a4e4200b9b9e6 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Tue, 17 Nov 2026 03:01:18 -0500 Subject: [PATCH] Browser tests: the top bar's menu button by its kind, now that the library's name is a button too Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab --- e2e/mouse.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/mouse.spec.ts b/e2e/mouse.spec.ts index 35e9b03..26988dd 100644 --- a/e2e/mouse.spec.ts +++ b/e2e/mouse.spec.ts @@ -229,7 +229,7 @@ test("the menu's keys: ↑ ↓ Home End move, Enter runs, Esc closes and gives t await open(page); await keys(page, "j"); const before = await state(page, (s) => s.focus.node); - await page.locator(".docbar .tool[aria-haspopup]").click(); + await page.locator(".docbar .tool[aria-haspopup=menu]").click(); await expect(menu(page)).toBeFocused(); await keys(page, "j k"); expect(await state(page, (s) => s.focus.node)).toBe(before); @@ -437,7 +437,7 @@ test.describe("on a phone", () => { await outside(); await expect(page.locator(".menu.sheet")).toHaveCount(0); // The top bar's menu, a sheet too. - await page.locator(".docbar .tool[aria-haspopup]").tap(); + await page.locator(".docbar .tool[aria-haspopup=menu]").tap(); await expect(page.locator(".menu.sheet")).toBeVisible(); await expect(item(page, "Jump to a section…")).toHaveCount(1); });