test: add reproducer for garden integrations (task 74)

This commit is contained in:
ginnoir
2026-06-01 20:30:18 -05:00
parent 0fef3d4ab6
commit eabcebdb00
+14
View File
@@ -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();