From eabcebdb0057c75bf117e842e911abb094e885c1 Mon Sep 17 00:00:00 2001 From: ginnoir Date: Mon, 1 Jun 2026 20:30:18 -0500 Subject: [PATCH] test: add reproducer for garden integrations (task 74) --- tests/e2e/garden.spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/e2e/garden.spec.ts b/tests/e2e/garden.spec.ts index b5265eb..603224e 100644 --- a/tests/e2e/garden.spec.ts +++ b/tests/e2e/garden.spec.ts @@ -72,6 +72,20 @@ test("garden care tracking happy path", async ({ page }) => { await expect(page).toHaveURL(/\/garden/); }); +test("garden integrations - push overdue to task list", async ({ page }) => { + // Navigate to garden page + await page.goto("/garden"); + await expect(page.getByRole("heading", { name: "Garden" })).toBeVisible(); + + // The "Add overdue to task list" button should be present + const pushButton = page.getByRole("button", { name: /overdue|task list/i }); + await expect(pushButton).toBeVisible(); + + // Click it — with no overdue plants it should show "No overdue" feedback + await pushButton.click(); + await expect(page.getByText(/no overdue|added \d+ task/i)).toBeVisible({ timeout: 5000 }); +}); + test("garden containers happy path", async ({ page }) => { await page.goto("/garden"); await expect(page.getByRole("heading", { name: "Garden" })).toBeVisible();