mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
docs: add transparency-fixer endpoint documentation
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 47 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing \d+ of 48 tools/)).toBeVisible();
|
||||
});
|
||||
|
||||
test("category pill filters tools", async ({ page }) => {
|
||||
await page.getByText(/AI Tools/).click();
|
||||
await expect(page.getByText(/Showing 14 of 47 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing 15 of 48 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 14 of 47 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing 15 of 48 tools/)).toBeVisible();
|
||||
|
||||
await page.getByText(/All \(47\)/).click();
|
||||
await expect(page.getByText(/Showing 47 of 47 tools/)).toBeVisible();
|
||||
await page.getByText(/All \(48\)/).click();
|
||||
await expect(page.getByText(/Showing 48 of 48 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 47 tools/)).toBeVisible();
|
||||
await expect(page.getByText(/Showing 0 of 48 tools/)).toBeVisible();
|
||||
});
|
||||
|
||||
test("combined search and category filter works", async ({ page }) => {
|
||||
@@ -68,29 +68,21 @@ test.describe("FAQ Page Accordion", () => {
|
||||
|
||||
test("clicking a question expands the answer", async ({ page }) => {
|
||||
await page.getByText("Are my files safe and private?").click();
|
||||
await expect(
|
||||
page.getByText(/All processing happens on your own server/),
|
||||
).toBeVisible();
|
||||
await expect(page.getByText(/All processing happens on your own server/)).toBeVisible();
|
||||
});
|
||||
|
||||
test("clicking again collapses the answer", async ({ page }) => {
|
||||
const question = page.getByText("Are my files safe and private?");
|
||||
await question.click();
|
||||
await expect(
|
||||
page.getByText(/All processing happens on your own server/),
|
||||
).toBeVisible();
|
||||
await expect(page.getByText(/All processing happens on your own server/)).toBeVisible();
|
||||
await question.click();
|
||||
await expect(
|
||||
page.getByText(/All processing happens on your own server/),
|
||||
).not.toBeVisible();
|
||||
await expect(page.getByText(/All processing happens on your own server/)).not.toBeVisible();
|
||||
});
|
||||
|
||||
test("multiple FAQs can be open simultaneously", async ({ page }) => {
|
||||
await page.getByText("Are my files safe and private?").click();
|
||||
await page.getByText("Is SnapOtter really free?").click();
|
||||
await expect(
|
||||
page.getByText(/All processing happens on your own server/),
|
||||
).toBeVisible();
|
||||
await expect(page.getByText(/All processing happens on your own server/)).toBeVisible();
|
||||
await expect(page.getByText(/open source under AGPL-3.0/)).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user