Add searchable manufacturer picker
This commit is contained in:
@@ -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("/");
|
||||
|
||||
Reference in New Issue
Block a user