mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: update tool count to 52 and add ai-canvas-expand to landing page
ai-canvas-expand was added to constants.ts and route files but never added to the landing page bento grid, causing all hardcoded counts to remain at 51. This updates all references across source, docs, i18n, and tests to reflect the correct count of 52 tools.
This commit is contained in:
@@ -9,28 +9,28 @@ test.describe("BentoGrid Interactions", () => {
|
||||
const input = page.getByPlaceholder("Search tools...");
|
||||
await input.fill("resize");
|
||||
await expect(page.getByText("Resize", { exact: true }).first()).toBeVisible();
|
||||
await expect(page.getByText(/Showing \d+ of 51 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing \d+ of 52 tools/)).toBeVisible();
|
||||
});
|
||||
|
||||
test("category pill filters tools", async ({ page }) => {
|
||||
await page.getByText(/AI Tools/).click();
|
||||
await expect(page.getByText(/Showing 15 of 51 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing 16 of 52 tools/)).toBeVisible();
|
||||
await expect(page.getByText("Remove Background")).toBeVisible();
|
||||
});
|
||||
|
||||
test("clicking All resets category filter", async ({ page }) => {
|
||||
await page.getByText(/AI Tools/).click();
|
||||
await expect(page.getByText(/Showing 15 of 51 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing 16 of 52 tools/)).toBeVisible();
|
||||
|
||||
await page.getByText(/All \(51\)/).click();
|
||||
await expect(page.getByText(/Showing 51 of 51 tools/)).toBeVisible();
|
||||
await page.getByText(/All \(52\)/).click();
|
||||
await expect(page.getByText(/Showing 52 of 52 tools/)).toBeVisible();
|
||||
});
|
||||
|
||||
test("search with no results shows empty state", async ({ page }) => {
|
||||
const input = page.getByPlaceholder("Search tools...");
|
||||
await input.fill("xyznonexistent");
|
||||
await expect(page.getByText("No tools found. Try a different search.")).toBeVisible();
|
||||
await expect(page.getByText(/Showing 0 of 51 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing 0 of 52 tools/)).toBeVisible();
|
||||
});
|
||||
|
||||
test("combined search and category filter works", async ({ page }) => {
|
||||
|
||||
Reference in New Issue
Block a user