Several web surfaces hard-coded German (the project card, roster and
activity status labels, the sidebar "Heute" label) or used German text as
the Lingui source message (sidebar sections, project timeline, bot picker,
voice entry, group stage, copy and read-aloud buttons). English users saw
German, and because production builds keep only message ids, none of these
strings could be translated per locale.
Convert them to English source messages, keeping the meaning:
- ProjectCreatedCard: Lingui Trans/Plural instead of literals.
- agent-activity: labels go through i18n._ with literal ids so the module
stays importable from plain unit tests; the extractor still collects them.
- Shell, ProjectSessionTimeline, bot-picker, StageVoiceEntry, OoStage:
English sources, reusing existing messages where one already fit
("just now", "{n}m ago", "Search", "No bots match", "Set up voice",
"Group conversation", "Transcript").
- The conversation picker matches its create entry against the translated
label instead of a fixed German string.
The German wording returns through the de catalog in the next commit.
Unit and E2E tests now assert the English labels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MRtGG9ARfqqhma3t85Ro2u
21 lines
940 B
TypeScript
21 lines
940 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
import { captureScreenshot, completeOnboarding, signup } from "./helpers";
|
|
|
|
test("Heute shows native brief instead of Mission Control iframe", async ({ page }, testInfo) => {
|
|
const stamp = Date.now();
|
|
await signup(page, `heute-${stamp}@rakazo.test`, "password12", "Heute");
|
|
await completeOnboarding(page);
|
|
|
|
await page.getByRole("button", { name: "Today", exact: true }).click();
|
|
await expect(page).toHaveURL(/\/app\/[^/]+$/);
|
|
|
|
const brief = page.getByTestId("heute-brief");
|
|
await expect(brief).toBeVisible();
|
|
await expect(page.locator('iframe[src="http://127.0.0.1:3088/"]')).toHaveCount(0);
|
|
await expect(page.getByText("evOo Mission Control")).toHaveCount(0);
|
|
await expect(page.getByTestId("heute-status")).toBeVisible();
|
|
await expect(page.getByTestId("heute-mission-control-link")).toBeVisible();
|
|
|
|
await captureScreenshot(page, testInfo, "heute-native-brief");
|
|
});
|