mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
- Add user management endpoints (register, list, delete, change password) - Add API key management (create, list, delete) - Add settings persistence endpoints (get, put) - Wire settings dialog to real backend (People, API Keys, System, Security) - Fix login auth flow (window.location.href for full reload) - Fix download URLs returning 401 (make public since UUIDs are unguessable) - Fix border tool shadowColor validation (accept 6-8 hex digits) - Fix remove-bg alpha matting fallback (retry without on failure) - Fix AI tool silent fallbacks (report errors instead of no-ops) - Add checkerboard background to before/after slider for transparency - Add progress bars to all AI tool components - Add Playwright E2E test suite (131 tests across 9 test files) - Rewrite Dockerfile for production (tsx runtime, pre-baked AI models) - Add .dockerignore for faster builds - Add proper accessible labels to login form
25 lines
856 B
TypeScript
25 lines
856 B
TypeScript
import { test, expect } from "./helpers";
|
|
|
|
test.describe("Theme System", () => {
|
|
test("page defaults to light theme", async ({ loggedInPage: page }) => {
|
|
// Check that html element does not have 'dark' class by default
|
|
const html = page.locator("html");
|
|
const classList = await html.getAttribute("class");
|
|
// Default is light, so 'dark' should not be present initially
|
|
// (unless system preference is dark)
|
|
expect(classList).toBeDefined();
|
|
});
|
|
|
|
test("footer has theme toggle buttons", async ({ loggedInPage: page }) => {
|
|
// Footer is fixed bottom-right
|
|
const footer = page.locator("[class*='fixed']").last();
|
|
await expect(footer).toBeVisible();
|
|
});
|
|
|
|
test("privacy policy link is in footer", async ({
|
|
loggedInPage: page,
|
|
}) => {
|
|
await expect(page.getByText("Privacy Policy")).toBeVisible();
|
|
});
|
|
});
|