test: testing overhaul -- CI e2e gates, parallel suites, generated matrices, mutation testing (#215)

Closes the "e2e never runs in CI" hole. Adds per-PR e2e smoke gate,
nightly full-suite workflows, parallel vitest forks (per-fork DBs),
Playwright parallel/serial/visual projects against production builds,
metadata-generated test suites (drift guards, hostile inputs, format
matrix, pairwise settings, property-based fuzz), Stryker mutation
testing, Schemathesis API fuzz, coverage ratchet, and fixes for three
session-poisoning bugs that caused 200+ serial-bucket failures.

Bug fix included: favicon/split/bulk-rename could hang clients forever
when ZIP streaming failed after reply.hijack().
This commit is contained in:
SnapOtter
2026-06-10 22:01:13 +08:00
committed by GitHub
parent 3b8d529b44
commit 4ec39c556f
62 changed files with 2888 additions and 298 deletions
+11 -5
View File
@@ -1,4 +1,4 @@
import { expect, openSettings, test } from "./helpers";
import { changePasswordViaApi, expect, openSettings, test } from "./helpers";
// ---------------------------------------------------------------------------
// Settings Dialog -- Security (change password) and API Keys tabs
@@ -82,12 +82,15 @@ test.describe("GUI Settings - Security Tab", () => {
// Change password from admin -> admin (same value, to avoid breaking other tests)
await page.getByPlaceholder("Current Password").fill("admin");
await page.getByPlaceholder("New Password").first().fill("admin");
await page.getByPlaceholder("Confirm New Password").fill("admin");
await page.getByPlaceholder("New Password").first().fill("Testpass123");
await page.getByPlaceholder("Confirm New Password").fill("Testpass123");
await page.getByRole("button", { name: /change password/i }).click();
await expect(page.getByText("Password changed successfully")).toBeVisible({ timeout: 5_000 });
const revert = await changePasswordViaApi(page, "Testpass123", "admin");
expect(revert.ok).toBeTruthy();
});
test("form fields are cleared after successful password change", async ({
@@ -97,12 +100,15 @@ test.describe("GUI Settings - Security Tab", () => {
await page.getByRole("button", { name: /security/i }).click();
await page.getByPlaceholder("Current Password").fill("admin");
await page.getByPlaceholder("New Password").first().fill("admin");
await page.getByPlaceholder("Confirm New Password").fill("admin");
await page.getByPlaceholder("New Password").first().fill("Testpass123");
await page.getByPlaceholder("Confirm New Password").fill("Testpass123");
await page.getByRole("button", { name: /change password/i }).click();
await expect(page.getByText("Password changed successfully")).toBeVisible({ timeout: 5_000 });
const revert = await changePasswordViaApi(page, "Testpass123", "admin");
expect(revert.ok).toBeTruthy();
// All fields should be cleared after success
await expect(page.getByPlaceholder("Current Password")).toHaveValue("");
await expect(page.getByPlaceholder("New Password").first()).toHaveValue("");