fix(sidebar): include URL menu.main items in mobile sidebar

This commit is contained in:
Xin
2026-03-06 22:58:13 +00:00
committed by GitHub
parent e12d3b98cc
commit 1317e5697f
2 changed files with 140 additions and 27 deletions

View File

@@ -90,3 +90,15 @@ test("all English pages pass axe-core WCAG AA", async ({ page, baseURL }) => {
`Accessibility violations found:\n\n${failures.join("\n\n")}`,
).toHaveLength(0);
});
test("mobile sidebar exposes main menu dropdown children", async ({ page }) => {
await page.setViewportSize({ width: 390, height: 844 });
await page.goto("/", { waitUntil: "load" });
await page.getByRole("button", { name: "Menu" }).click();
const sidebar = page.locator("aside.hextra-sidebar-container");
await expect(sidebar.getByRole("link", { name: "Development ↗" })).toBeVisible();
await expect(sidebar.getByRole("link", { name: "v0.10 ↗" })).toBeVisible();
await expect(sidebar.getByRole("link", { name: "v0.11 ↗" })).toBeVisible();
});