Add searchable manufacturer picker

This commit is contained in:
2026-08-05 15:50:36 +02:00
parent 1914c7d141
commit a1e3f537e3
6 changed files with 181 additions and 2 deletions
+10
View File
@@ -23,6 +23,16 @@ test("settings modal opens and shows local database controls", async ({ page })
await expect(page.locator("#testLocalDbButton")).toBeVisible();
});
test("manufacturer picker shows ten results and supports search", async ({ page }) => {
await page.goto("/");
await page.locator("#manufacturerTrigger").click();
await expect(page.locator("#manufacturerOptions .manufacturer-option")).toHaveCount(10);
await expect(page.locator("#manufacturerSearch")).toBeVisible();
await page.locator("#manufacturerSearch").fill("La Sportiva");
await expect(page.locator("#manufacturerOptions .manufacturer-option")).toHaveText(["La Sportiva"]);
});
test("catalog maker remains usable on a narrow viewport", async ({ page }) => {
await page.setViewportSize({ width: 390, height: 844 });
await page.goto("/");