M17: ground knowledge and integration evidence
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user