evOo-local/apps/web/e2e/onboarding-intake-de.spec.ts
Cursor Agent 8ff137c17b
Fix CI: sync Lingui catalogs, onboarding name draft, E2E stability
- Localize Chief of Staff in discovery shell; sync all locale PO files
- Propagate Oo name to onboarding draft while typing
- Adjust DE intake, queued-run, and console-error E2E specs

Co-authored-by: cynarAI <cynarAI@users.noreply.github.com>
2026-10-07 08:12:48 +00:00

24 lines
1.0 KiB
TypeScript

import { expect, test } from "@playwright/test";
import { completeOnboarding, signup } from "./helpers";
test.use({ viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true });
test("German UI localizes goal placeholder and question in intake", async ({ page }) => {
await page.addInitScript(() => {
Object.defineProperty(navigator, "language", { value: "de-DE", configurable: true });
localStorage.setItem("rakazo.uiLocale", "de");
});
const stamp = Date.now();
await signup(page, `intake-de-${stamp}@rakazo.test`, "password12", "Deutsch Intake");
await completeOnboarding(page, undefined, { mainConversation: true });
await page.getByTestId("focus-choice-day").click();
const goal = page.locator('[data-testid="choice-card"][data-step="goal"]');
await expect(goal).toContainText("Was möchtest du in den nächsten Wochen erledigt bekommen?");
await expect(
goal.getByRole("textbox", {
name: "Was möchtest du in den nächsten Wochen erledigt bekommen?",
}),
).toHaveAttribute("placeholder", "Dein Ziel");
});