test: add reproducer for garden integrations (task 74)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user