fix: translate remaining NL/FR interface gaps
Role names, audit/scenario labels, and status text were previously either left in English or only partially translated: - auth.json/demo.json role labels actually translated (not just labelled as translated): Operationsmanager/Verhuurmedewerker, Responsable des operations/Collaborateur de location. - "Audit trail" -> Auditgeschiedenis/Piste d'audit (title, column header, and every mid-sentence occurrence across demo.json, quality.json, returns.json -- these embedded leaks were previously invisible to the whole-string identity check). - "Open" (status) -> Openstaand, "Recent" -> Recentste, "Start scenario" -> Scenario starten / Demarrer le scenario. Matching Playwright spec text updated in the same commit so the suite never regresses through a broken intermediate state.
This commit is contained in:
@@ -12,7 +12,7 @@ test.describe.configure({ mode: "serial" });
|
||||
test("scenario overview lists all 5 scenarios, ready right after a reset", async ({ page, request }) => {
|
||||
await resetDemoData(request);
|
||||
await page.goto("/login");
|
||||
await page.getByRole("button", { name: "Verken als Operations Manager" }).click();
|
||||
await page.getByRole("button", { name: "Verken als Operationsmanager" }).click();
|
||||
await expect(page).toHaveURL(/\/dashboard$/);
|
||||
await page.goto("/scenarios");
|
||||
|
||||
@@ -27,12 +27,12 @@ test("scenario overview lists all 5 scenarios, ready right after a reset", async
|
||||
|
||||
test("starting a scenario navigates to its fixed record", async ({ page }) => {
|
||||
await page.goto("/login");
|
||||
await page.getByRole("button", { name: "Verken als Operations Manager" }).click();
|
||||
await page.getByRole("button", { name: "Verken als Operationsmanager" }).click();
|
||||
await expect(page).toHaveURL(/\/dashboard$/);
|
||||
await page.goto("/scenarios");
|
||||
|
||||
const duplicateCard = page.locator(".scenario-card", { hasText: "dubbele klant" });
|
||||
await duplicateCard.getByRole("link", { name: "Start scenario" }).click();
|
||||
await duplicateCard.getByRole("link", { name: "Scenario starten" }).click();
|
||||
await expect(page).toHaveURL(/\/data-quality\/DQ-DEMO-DUPLICATE$/);
|
||||
});
|
||||
|
||||
@@ -92,7 +92,7 @@ test("demo guide progress persists across navigation and the trigger shows it",
|
||||
|
||||
test("demo guide is not shown to a rental employee", async ({ page }) => {
|
||||
await page.goto("/login");
|
||||
await page.getByRole("button", { name: "Verken als Rental Employee" }).click();
|
||||
await page.getByRole("button", { name: "Verken als Verhuurmedewerker" }).click();
|
||||
await expect(page).toHaveURL(/\/dashboard$/);
|
||||
await expect(page.getByRole("button", { name: /Demo-gids/ })).toHaveCount(0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user