M17: ground knowledge and integration evidence

This commit is contained in:
NuklearRabbit
2026-08-10 12:27:17 +02:00
parent 686795a452
commit 8030753dbc
15 changed files with 480 additions and 74 deletions
+7 -3
View File
@@ -65,11 +65,15 @@ test("knowledge page suggested question returns a grounded, honestly-labelled an
await expect(page).toHaveURL(/\/dashboard$/);
await page.goto("/knowledge");
// The status badge and retrieval-flow diagram must name the actual active provider
// honestly, not the not-yet-connected "RAGcore" -- the honest disclosure note below is
// allowed to mention RAGcore by name when explaining it isn't live yet.
// The status badge must name the actual active provider once its check settles.
await expect(page.locator(".knowledge-status strong")).toHaveText(/RAGcore|de demokennisbank/);
await page.getByRole("button", { name: "Wie beoordeelt een ongewone kilometerstand?" }).click();
await expect(page.getByText("Onderbouwd met geciteerde procedures")).toBeVisible({ timeout: 15_000 });
const sources = page.locator(".exchange").first().locator(".source-card");
expect(await sources.count()).toBeLessThanOrEqual(3);
const titles = await sources.locator(".source-title").allTextContents();
expect(new Set(titles.map((title) => title.trim().toLocaleLowerCase())).size).toBe(titles.length);
await page.getByRole("button", { name: "Ja" }).first().click();
await expect(page.getByText("Feedback opgeslagen")).toBeVisible();
});