Publish curated Knowledge Hub source from 2ed833f290b439a7bc91e5fd19b042c269e3bee9

This commit is contained in:
Public Source Publisher committed 2026-10-03 17:07:21 +00:00
1 parent 10f2edcd29
commit 59f15b2d08
218 files changed
+23995 -1849

No files matched your search

+12 -4
View File
@@ -43,18 +43,26 @@ test.describe("discovery: search, revisions, backlinks and tags", () => {
// Scoped to the search results list specifically: on a desktop viewport the
// permanent sidebar tree also shows a same-named entry once the page exists, so an
// unscoped locator would be ambiguous.
const searchResults = page.getByRole("list", { name: "Zoekresultaten" });
const searchResults = page.getByRole("region", { name: "Zoekresultaten" });
await page.getByLabel("Zoekterm").fill("zoekbaarheidsproef");
await page.getByRole("button", { name: "Zoekopdracht uitvoeren" }).click();
await expect(searchResults.getByRole("button", { name: new RegExp(uniqueTitle) })).toBeVisible();
await expect(searchResults.getByRole("link", { name: new RegExp(uniqueTitle) })).toBeVisible();
// Tag filter narrows results to just the tagged page.
await page.getByLabel("Label").fill(tag);
await page.getByRole("button", { name: "Zoekopdracht uitvoeren" }).click();
await expect(searchResults.getByRole("button", { name: new RegExp(uniqueTitle) })).toBeVisible();
await expect(searchResults.getByRole("link", { name: new RegExp(uniqueTitle) })).toBeVisible();
await searchResults.getByRole("button", { name: new RegExp(uniqueTitle) }).click();
await page.getByLabel("Label", { exact: true }).fill(`${tag}-absent`);
await page.getByRole("button", { name: "Zoekopdracht uitvoeren" }).click();
await expect(searchResults.getByText("Geen resultaten voor deze zoekterm.")).toBeVisible();
await page.getByLabel("Zoekterm").fill("");
await page.getByLabel("Label", { exact: true }).fill(tag);
await page.getByRole("button", { name: "Zoekopdracht uitvoeren" }).click();
await expect(searchResults.getByRole("link", { name: new RegExp(uniqueTitle) })).toBeVisible();
await searchResults.getByRole("link", { name: new RegExp(uniqueTitle) }).click();
await expect(page.getByRole("heading", { name: uniqueTitle })).toBeVisible();
// Scoped to the backlinks panel: on a desktop viewport the permanent sidebar tree