UI: close the bottom bar more menu on a second tab click (#32435)
This commit is contained in:
parent
3970e19847
commit
43349e43fb
3 changed files with 21 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue