UI: close the bottom bar more menu on a second tab click (#32435)

This commit is contained in:
andig 2026-08-03 08:58:22 +02:00 • committed by GitHub
parent 3970e19847
commit 43349e43fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 18 deletions

View file

@ -30,9 +30,16 @@ test.describe("bottom navigation", async () => {
await expect(tabMore).toBeVisible();
await expect(tabBattery).toHaveCount(0);
// more menu opens and closes on the same tab
const configLink = tabMore.getByRole("link", { name: "Configuration" });
await tabMore.click();
await expect(configLink).toBeVisible();
await tabMore.click();
await expect(configLink).not.toBeVisible();
// navigate to config via More menu
await tabMore.click();
await tabMore.getByRole("link", { name: "Configuration" }).click();
await configLink.click();
await expect(page.getByRole("heading", { name: "Configuration" })).toBeVisible();
// create battery meter