Apply patch [skip ci]
This commit is contained in:
parent
4beaac24f3
commit
39f8152f5e
@ -1,7 +1,7 @@
|
||||
import { expect, test } from "@playwright/test";
|
||||
import { expect, test, Page } from "@playwright/test";
|
||||
import { applyDeterministicPage, e2eHeaders, useE2EUser } from "./helpers.ts";
|
||||
|
||||
test("landlord can generate a tenant invite email", async ({ page }) => {
|
||||
test("landlord can generate a tenant invite email", async ({ page }: { page: Page }) => {
|
||||
await applyDeterministicPage(page);
|
||||
await useE2EUser(page, "landlord");
|
||||
|
||||
@ -74,7 +74,7 @@ test("landlord can generate a tenant invite email", async ({ page }) => {
|
||||
await expect(emailInput).toHaveValue(/jamie\.roommate@example\.com/i);
|
||||
});
|
||||
|
||||
test("tenant invite preview shows property details and actions", async ({ page }) => {
|
||||
test("tenant invite preview shows property details and actions", async ({ page }: { page: Page }) => {
|
||||
await applyDeterministicPage(page);
|
||||
|
||||
const inviteResponse = await page.request.post("/api/update/tenant_invite", {
|
||||
@ -102,3 +102,4 @@ test("tenant invite preview shows property details and actions", async ({ page }
|
||||
await expect(page.getByRole("button", { name: /decline/i })).toBeVisible();
|
||||
await expect(page.getByRole("link", { name: /cancel/i })).toBeVisible();
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user