Merge pull request #230 from trails-cool/fix/flaky-overnight-e2e

Fix flaky overnight E2E test timeout
This commit is contained in:
Ullrich Schäfer 2026-04-15 02:30:55 +02:00 committed by GitHub
commit 3ad2ef9006
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -259,10 +259,10 @@ test.describe("Planner", () => {
await expect(page.locator(".leaflet-container")).toBeVisible({ timeout: 10000 });
await expect(page.getByText("Connected")).toBeVisible({ timeout: 15000 });
await expect(page.getByText("Waypoints (3)")).toBeVisible({ timeout: 5000 });
await expect(page.getByText("Waypoints (3)")).toBeVisible({ timeout: 15000 });
const sidebar = page.locator("aside");
await expect(sidebar.getByText(/\d+\.\d+ km/).first()).toBeVisible({ timeout: 10000 });
await expect(sidebar.getByText(/\d+\.\d+ km/).first()).toBeVisible({ timeout: 15000 });
// Hover waypoint 2 to reveal controls, click the overnight toggle (moon icon)
const waypointRows = sidebar.locator("li").filter({ has: page.locator("span.rounded-full") });