mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: update e2e tests for current UI, increase timeouts for CPU environments, and fix auth bypass bug
- Fix SKIP_MUST_CHANGE_PASSWORD not affecting login/session API responses, causing frontend redirect even when the env var was set after user creation - Increase Docker Playwright timeouts (test: 600s, expect: 60s, AI processing: 300s) to support CPU-only self-hosted environments - Increase default rate limit from 100 to 50000 req/min for self-hosted deployments - Fix OCR tests: use filechooser pattern (Dropzone has no static file input), correct enhance checkbox default, rewrite for actual fixture behavior - Fix remove-bg tests: update quality labels (Balanced→HD, Best→Max) - Fix noise-removal skip guard: use waitFor() instead of instant isVisible() - Fix automate pipeline save test: clean up stale E2E pipelines before assertion
This commit is contained in:
@@ -21,15 +21,15 @@ async function uploadFile(page: import("@playwright/test").Page, filePath: strin
|
||||
|
||||
async function removeNoiseAndWait(page: import("@playwright/test").Page) {
|
||||
await page.getByTestId("noise-removal-submit").click();
|
||||
await expect(page.getByTestId("noise-removal-download")).toBeVisible({ timeout: 120_000 });
|
||||
await expect(page.getByTestId("noise-removal-download")).toBeVisible({ timeout: 300_000 });
|
||||
}
|
||||
|
||||
test.describe("Noise Removal tool", () => {
|
||||
async function skipIfFeatureNotInstalled(page: import("@playwright/test").Page) {
|
||||
await page.goto("/noise-removal");
|
||||
const submit = page.getByTestId("noise-removal-submit");
|
||||
const visible = await submit.isVisible({ timeout: 5_000 }).catch(() => false);
|
||||
if (!visible) {
|
||||
try {
|
||||
await page.getByTestId("noise-removal-submit").waitFor({ state: "visible", timeout: 15_000 });
|
||||
} catch {
|
||||
test.skip(true, "upscale-enhance feature bundle not installed");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user