Apply patch [skip ci]
This commit is contained in:
parent
88fb8995c5
commit
4c0882be71
@ -1,7 +1,7 @@
|
|||||||
import { expect, test } from "@playwright/test";
|
import { expect, test, Page } from "@playwright/test";
|
||||||
import { applyDeterministicPage, e2eHeaders, useE2EUser } from "./helpers.ts";
|
import { applyDeterministicPage, e2eHeaders, useE2EUser } from "./helpers.ts";
|
||||||
|
|
||||||
test("tenant onboarding lets renters apply and reach dashboard", async ({ page }) => {
|
test("tenant onboarding lets renters apply and reach dashboard", async ({ page }: { page: Page }) => {
|
||||||
await applyDeterministicPage(page);
|
await applyDeterministicPage(page);
|
||||||
await useE2EUser(page, "tenant");
|
await useE2EUser(page, "tenant");
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ test("tenant onboarding lets renters apply and reach dashboard", async ({ page }
|
|||||||
.toBeVisible();
|
.toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("landlord onboarding entry points show dashboard access", async ({ page }) => {
|
test("landlord onboarding entry points show dashboard access", async ({ page }: { page: Page }) => {
|
||||||
await applyDeterministicPage(page);
|
await applyDeterministicPage(page);
|
||||||
await useE2EUser(page, "landlord");
|
await useE2EUser(page, "landlord");
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ test("landlord onboarding entry points show dashboard access", async ({ page })
|
|||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("onboarded landlord skips profile onboarding", async ({ page }) => {
|
test("onboarded landlord skips profile onboarding", async ({ page }: { page: Page }) => {
|
||||||
await applyDeterministicPage(page);
|
await applyDeterministicPage(page);
|
||||||
await useE2EUser(page, "landlord");
|
await useE2EUser(page, "landlord");
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ test("onboarded landlord skips profile onboarding", async ({ page }) => {
|
|||||||
await expect(page.getByLabel(/street address/i)).toBeVisible();
|
await expect(page.getByLabel(/street address/i)).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
test("invite links highlight the selected rental on onboarding", async ({ page }) => {
|
test("invite links highlight the selected rental on onboarding", async ({ page }: { page: Page }) => {
|
||||||
await applyDeterministicPage(page);
|
await applyDeterministicPage(page);
|
||||||
|
|
||||||
const inviteResponse = await page.request.post("/api/update/tenant_invite", {
|
const inviteResponse = await page.request.post("/api/update/tenant_invite", {
|
||||||
@ -77,3 +77,4 @@ test("invite links highlight the selected rental on onboarding", async ({ page }
|
|||||||
await expect(page.getByText("Skyline Lofts")).toBeVisible();
|
await expect(page.getByText("Skyline Lofts")).toBeVisible();
|
||||||
await expect(page.getByLabel(/select a property/i)).toHaveCount(0);
|
await expect(page.getByLabel(/select a property/i)).toHaveCount(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user