Apply patch [skip ci]
This commit is contained in:
parent
ff2c78ae98
commit
d3052a5528
@ -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/);
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user