refactor(private-zone): use canonical product name
This commit is contained in:
@@ -57,16 +57,16 @@ test("favorite entry and three-tab Menu navigation render on the real pages", as
|
|||||||
name: "Primary navigation",
|
name: "Primary navigation",
|
||||||
});
|
});
|
||||||
await expect(navigation).toContainText("Chat");
|
await expect(navigation).toContainText("Chat");
|
||||||
await expect(navigation).toContainText("Elio Private Zoom");
|
await expect(navigation).toContainText("Elio Private Zone");
|
||||||
await expect(navigation).toContainText("Menu");
|
await expect(navigation).toContainText("Menu");
|
||||||
await savePreview(page, `${mobile ? "mobile" : "desktop"}-splash.png`);
|
await savePreview(page, `${mobile ? "mobile" : "desktop"}-splash.png`);
|
||||||
|
|
||||||
await page.goto("/characters/elio/private-zoom");
|
await page.goto("/characters/elio/private-zone");
|
||||||
await expect(page.getByRole("button", { name: "Save CozSweet" })).toBeVisible();
|
await expect(page.getByRole("button", { name: "Save CozSweet" })).toBeVisible();
|
||||||
await expect(page.getByRole("button", { name: "Menu" })).toBeVisible();
|
await expect(page.getByRole("button", { name: "Menu" })).toBeVisible();
|
||||||
await savePreview(
|
await savePreview(
|
||||||
page,
|
page,
|
||||||
`${mobile ? "mobile" : "desktop"}-private-zoom.png`,
|
`${mobile ? "mobile" : "desktop"}-private-zone.png`,
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByRole("button", { name: "Menu" }).click();
|
await page.getByRole("button", { name: "Menu" }).click();
|
||||||
@@ -111,7 +111,7 @@ async function registerFavoriteMenuMocks(page: Page): Promise<void> {
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
await page.route("**/api/private-zoom/albums**", async (route) => {
|
await page.route("**/api/private-zone/albums**", async (route) => {
|
||||||
await route.fulfill({
|
await route.fulfill({
|
||||||
json: apiEnvelope({ items: [], creditBalance: 80 }),
|
json: apiEnvelope({ items: [], creditBalance: 80 }),
|
||||||
});
|
});
|
||||||
@@ -162,7 +162,7 @@ async function registerFavoriteMenuMocks(page: Page): Promise<void> {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (pathname === "/api/private-zoom/albums") {
|
if (pathname === "/api/private-zone/albums") {
|
||||||
await route.fulfill({
|
await route.fulfill({
|
||||||
json: apiEnvelope({ items: [], creditBalance: 80 }),
|
json: apiEnvelope({ items: [], creditBalance: 80 }),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -191,14 +191,14 @@ export function ProfileScreen({ returnTo }: ProfileScreenProps) {
|
|||||||
|
|
||||||
<AppBottomNav
|
<AppBottomNav
|
||||||
activeItem="menu"
|
activeItem="menu"
|
||||||
privateZoomLabel={
|
privateZoneLabel={
|
||||||
character?.copy.privateZoomTitle ?? "Private Zoom"
|
character?.copy.privateZoneTitle ?? "Private Zone"
|
||||||
}
|
}
|
||||||
onChatClick={() =>
|
onChatClick={() =>
|
||||||
navigator.push(navigation.splashUrl, { scroll: false })
|
navigator.push(navigation.splashUrl, { scroll: false })
|
||||||
}
|
}
|
||||||
onPrivateZoomClick={() =>
|
onPrivateZoneClick={() =>
|
||||||
navigator.push(characterRoutes.privateZoom, { scroll: false })
|
navigator.push(characterRoutes.privateZone, { scroll: false })
|
||||||
}
|
}
|
||||||
onMenuClick={() => undefined}
|
onMenuClick={() => undefined}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user