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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
037c13b549
commit
b25651a7a4
1 file changed
+2
-2
+2
-2
@@ -229,7 +229,7 @@ test("the menu's keys: ↑ ↓ Home End move, Enter runs, Esc closes and gives t
|
|||||||
await open(page);
|
await open(page);
|
||||||
await keys(page, "j");
|
await keys(page, "j");
|
||||||
const before = await state(page, (s) => s.focus.node);
|
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 expect(menu(page)).toBeFocused();
|
||||||
await keys(page, "j k");
|
await keys(page, "j k");
|
||||||
expect(await state(page, (s) => s.focus.node)).toBe(before);
|
expect(await state(page, (s) => s.focus.node)).toBe(before);
|
||||||
@@ -437,7 +437,7 @@ test.describe("on a phone", () => {
|
|||||||
await outside();
|
await outside();
|
||||||
await expect(page.locator(".menu.sheet")).toHaveCount(0);
|
await expect(page.locator(".menu.sheet")).toHaveCount(0);
|
||||||
// The top bar's menu, a sheet too.
|
// 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(page.locator(".menu.sheet")).toBeVisible();
|
||||||
await expect(item(page, "Jump to a section…")).toHaveCount(1);
|
await expect(item(page, "Jump to a section…")).toHaveCount(1);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user