diff --git a/tests/e2e/tenant-dashboard.spec.ts b/tests/e2e/tenant-dashboard.spec.ts index 84b1986..30a976f 100644 --- a/tests/e2e/tenant-dashboard.spec.ts +++ b/tests/e2e/tenant-dashboard.spec.ts @@ -1,7 +1,7 @@ -import { expect, test } from "@playwright/test"; +import { expect, test, type Page } from "@playwright/test"; import { applyDeterministicPage, useE2EUser } from "./helpers.ts"; -test("tenant dashboard shows lease summary and activity", async ({ page }) => { +test("tenant dashboard shows lease summary and activity", async ({ page }: { page: Page }) => { await applyDeterministicPage(page); await useE2EUser(page, "tenant"); @@ -15,7 +15,7 @@ test("tenant dashboard shows lease summary and activity", async ({ page }) => { await expect(page.getByRole("cell", { name: "ach" }).first()).toBeVisible(); }); -test("tenant maintenance list includes active requests", async ({ page }) => { +test("tenant maintenance list includes active requests", async ({ page }: { page: Page }) => { await applyDeterministicPage(page); await useE2EUser(page, "tenant"); @@ -28,7 +28,7 @@ test("tenant maintenance list includes active requests", async ({ page }) => { ).toBeVisible(); }); -test("tenant can submit a maintenance request", async ({ page }) => { +test("tenant can submit a maintenance request", async ({ page }: { page: Page }) => { await applyDeterministicPage(page); await useE2EUser(page, "tenant"); @@ -47,7 +47,7 @@ test("tenant can submit a maintenance request", async ({ page }) => { await expect(page.getByText(/submitted successfully/i)).toBeVisible(); }); -test("tenant messages list shows landlord communication", async ({ page }) => { +test("tenant messages list shows landlord communication", async ({ page }: { page: Page }) => { await applyDeterministicPage(page); await useE2EUser(page, "tenant"); @@ -67,7 +67,7 @@ test("tenant messages list shows landlord communication", async ({ page }) => { } }); -test("tenant rent pay flow accepts payment method", async ({ page }) => { +test("tenant rent pay flow accepts payment method", async ({ page }: { page: Page }) => { await applyDeterministicPage(page); await useE2EUser(page, "tenant"); @@ -81,3 +81,4 @@ test("tenant rent pay flow accepts payment method", async ({ page }) => { await submitButton.click(); await expect(page).toHaveURL(/\/tenant\/rent\/confirmation\?success=true/); }); +