From 9b70875c7269c6a744de1e39840865b81a42e324 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 24 Mar 2024 14:02:22 +0100 Subject: [PATCH] add /planned to quick menu --- frontend/tests/cox.spec.ts | 4 ++-- templates/includes/macros.html.tera | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/tests/cox.spec.ts b/frontend/tests/cox.spec.ts index 339d98a..c19ae45 100644 --- a/frontend/tests/cox.spec.ts +++ b/frontend/tests/cox.spec.ts @@ -7,7 +7,7 @@ test("cox can create and delete trip", async ({ page }) => { await page.getByPlaceholder("Name").press("Tab"); await page.getByPlaceholder("Passwort").fill("cox"); await page.getByPlaceholder("Passwort").press("Enter"); - await page.locator('a').filter({ hasText: /^Geplante Ausfahrten$/ }).click(); + await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click(); await page.locator(".relative").first().click(); await page.locator("#sidebar #planned_starting_time").click(); await page.locator("#sidebar #planned_starting_time").fill("18:00"); @@ -38,7 +38,7 @@ test.describe("cox can edit trips", () => { await page.getByPlaceholder("Name").press("Tab"); await page.getByPlaceholder("Passwort").fill("cox"); await page.getByPlaceholder("Passwort").press("Enter"); - await page.locator('a').filter({ hasText: /^Geplante Ausfahrten$/ }).click(); + await page.locator('li').filter({ hasText: 'Geplante Ausfahrten' }).getByRole('link').click(); await page.locator(".relative").first().click(); await page.locator("#sidebar #planned_starting_time").click(); await page.locator("#sidebar #planned_starting_time").fill("18:00"); diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index e861533..0c819bb 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -50,6 +50,7 @@