Initial curated projectbrain source from 8a7b1e0651dbdab97d744cbd2e653ab3970ac6c5

This commit is contained in:
Public Source Publisher committed 2026-10-01 01:43:26 +02:00
commit 5aa3e8d685
700 files changed
+132801

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
import { expect, test } from "@playwright/test";
test("project search and sort survive reload and clearing preserves sorting", async ({ page }) => {
await page.goto("/projects?q=widefrog&sort=name");
await expect(page.getByRole("textbox", { name: "Projecten zoeken", exact: true })).toHaveValue("widefrog");
await expect(page.getByRole("button", { name: "Naam", exact: true })).toHaveAttribute("aria-pressed", "true");
await page.getByRole("textbox", { name: "Projecten zoeken", exact: true }).fill("no-project-matches-this");
await page.reload();
await expect(page.getByRole("textbox", { name: "Projecten zoeken", exact: true })).toHaveValue("no-project-matches-this");
await page.getByRole("button", { name: "Selectie wissen", exact: true }).click();
await expect(page.getByRole("textbox", { name: "Projecten zoeken", exact: true })).toHaveValue("");
await expect(page.getByRole("button", { name: "Naam", exact: true })).toHaveAttribute("aria-pressed", "true");
await expect(page).toHaveURL(/sort=name/);
});