test: repair serial-bucket quick wins and quarantine intractable specs (phase 4b)

Repairs (74 tests across 6 files):
- rbac.spec.ts, settings.spec.ts: fix obsolete auth-state path
  (test-results/.auth/user.json -> .playwright/.auth/user.json via
  authFile import from playwright.config.ts)
- state-bleed-audit.spec.ts, gui-file-carry.spec.ts, full-session.spec.ts:
  update bare tool routes (/resize -> /image/resize, etc.) to match the
  2.0 /:modality/:toolId routing
- gui-settings-rbac.spec.ts: fix 2 tests with bare /resize route

Quarantine (65 tests across 2 files, tagged with test.skip()):
- gui-performance.spec.ts (62 tests): bare routes throughout + selector
  drift; mechanical route fix is tractable but needs UI verification pass
- theme.spec.ts (3 tests): footer theme toggle selector needs 2.0 UI
  verification

QUARANTINE.md updated with full triage table. Vitest parity confirmed.
This commit is contained in:
SnapOtter
2026-06-20 03:09:00 +08:00
parent e7b5d909d3
commit 692c8ebf91
10 changed files with 26863 additions and 58 deletions
+9 -9
View File
@@ -26,7 +26,7 @@ test.describe("Cross-tool file carrying", () => {
.click();
// Should navigate to /resize
await expect(page).toHaveURL("/resize");
await expect(page).toHaveURL("/image/resize");
// The file should be carried - dropzone should NOT be visible
await expect(page.getByText("Upload from computer")).not.toBeVisible({ timeout: 3_000 });
@@ -51,7 +51,7 @@ test.describe("Cross-tool file carrying", () => {
.click();
// Should navigate to /compress
await expect(page).toHaveURL("/compress");
await expect(page).toHaveURL("/image/compress");
// The file should be carried - dropzone should NOT be visible
await expect(page.getByText("Upload from computer")).not.toBeVisible({ timeout: 3_000 });
@@ -64,7 +64,7 @@ test.describe("Cross-tool file carrying", () => {
loggedInPage: page,
}) => {
// Go to resize and upload a file
await page.goto("/resize");
await page.goto("/image/resize");
await uploadTestImage(page);
// Confirm the file is loaded
@@ -72,7 +72,7 @@ test.describe("Cross-tool file carrying", () => {
await expect(page.getByText("Upload from computer")).not.toBeVisible();
// Navigate to compress via direct URL (simulates sidebar navigation)
await page.goto("/compress");
await page.goto("/image/compress");
await page.waitForLoadState("networkidle");
// The file should NOT be carried - dropzone should appear
@@ -88,7 +88,7 @@ test.describe("Cross-tool file carrying", () => {
loggedInPage: page,
}) => {
// Go to resize and upload a file
await page.goto("/resize");
await page.goto("/image/resize");
await uploadTestImage(page);
// Confirm the file is loaded on resize
@@ -100,7 +100,7 @@ test.describe("Cross-tool file carrying", () => {
await page.waitForURL("/");
// Now navigate to a different tool via URL (simulating a fresh tool visit)
await page.goto("/convert");
await page.goto("/image/convert");
await page.waitForLoadState("networkidle");
// No stale download links should be present from the previous tool
@@ -115,7 +115,7 @@ test.describe("Cross-tool file carrying", () => {
await page.waitForLoadState("networkidle");
// Navigate to resize
await page.goto("/resize");
await page.goto("/image/resize");
await page.waitForLoadState("networkidle");
// Upload a file on resize
@@ -145,7 +145,7 @@ test.describe("Cross-tool file carrying", () => {
.getByRole("button", { name: /resize/i })
.first()
.click();
await expect(page).toHaveURL("/resize");
await expect(page).toHaveURL("/image/resize");
// File should be carried from home via Quick Action
await expect(page.getByText("Upload from computer")).not.toBeVisible({ timeout: 3_000 });
@@ -157,7 +157,7 @@ test.describe("Cross-tool file carrying", () => {
await page.waitForURL("/");
// Navigate to compress directly (not via Quick Action)
await page.goto("/compress");
await page.goto("/image/compress");
await page.waitForLoadState("networkidle");
// No processed state should leak between tool pages