commit 145e0e2f0ff83fc9880401612273cb73ea54d49e
parent c403eb8ed65d693f53ce2133f9b29ae323500b7c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 02:49:50 -0400
umtool e2e: takes, faces, mix and find follow the tools' addresses
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
4 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/umtool/e2e/faces.spec.ts b/umtool/e2e/faces.spec.ts
@@ -81,12 +81,13 @@ const parseBox = (s: string): Box => {
// 1. The route itself.
// ---------------------------------------------------------------------------
-// A STATIC segment inside app/browse/[song]/'s territory, the same trap
-// /browse/find and /browse/decisions both document. When it regresses the page
-// still renders perfectly on its own and only the URL stops working.
-test("/browse/faces is not swallowed by the [song] route", async ({ page }) => {
+// The faces page was a static segment inside /browse's project catch-all; it
+// is /tools/faces since P3, and /browse/faces redirects there BEFORE the
+// /browse/:path* row could send it to a project called "faces".
+test("/browse/faces is the face judger, at /tools/faces", async ({ page }) => {
const res = await page.goto("/browse/faces");
expect(res?.status()).toBe(200);
+ await expect(page).toHaveURL(/\/tools\/faces$/);
await expect(page.getByRole("navigation", { name: "Breadcrumb" })).toContainText("faces");
await expect(page.locator("[data-face-deck]")).toBeVisible();
});
@@ -98,7 +99,7 @@ test("the bench links to the judger and the nav does not", async ({ page }) => {
const link = page.locator("[data-judge-faces]").first();
await expect(link).toBeVisible();
const cover = (await link.getAttribute("data-judge-faces")) ?? "";
- await expect(link).toHaveAttribute("href", `/browse/faces?cover=${encodeURIComponent(cover)}`);
+ await expect(link).toHaveAttribute("href", `/tools/faces?cover=${encodeURIComponent(cover)}`);
// Nine items, and faces is not one of them.
const nav = page.getByRole("navigation").first();
diff --git a/umtool/e2e/find.spec.ts b/umtool/e2e/find.spec.ts
@@ -59,12 +59,13 @@ const attr = async (page: Page, sel: string, name: string): Promise<string> =>
// 1. The route itself.
// ---------------------------------------------------------------------------
-// A STATIC segment inside app/browse/[song]/'s territory. When this regresses
-// the page still renders perfectly on its own and only the URL stops working,
-// which is the failure mode that goes unnoticed longest.
-test("/browse/find is not swallowed by the [song] route", async ({ page }) => {
+// The phrase console is /tools/find since P3. /browse/find redirects there
+// BEFORE the /browse/:path* row could send it to a project called "find" -- the
+// failure that goes unnoticed longest, because the page still renders on its own.
+test("/browse/find is the phrase console, at /tools/find", async ({ page }) => {
const res = await page.goto("/browse/find");
expect(res?.status()).toBe(200);
+ await expect(page).toHaveURL(/\/tools\/find$/);
await expect(page.getByRole("navigation", { name: "Breadcrumb" })).toContainText("find");
await expect(page.locator("#phrase-q")).toBeVisible();
});
@@ -390,6 +391,6 @@ test("a filler query explains itself and points at /sort", async ({ page }) => {
await expect(page.locator("[data-note]").first()).toContainText("ACOUSTICALLY");
await expect(page.getByRole("link", { name: /fillers are in \/sort/i })).toHaveAttribute(
"href",
- "/sort",
+ "/tools/song/sort",
);
});
diff --git a/umtool/e2e/mix.spec.ts b/umtool/e2e/mix.spec.ts
@@ -243,7 +243,7 @@ test("a clip row links into the bench with the window already set", async ({ pag
expect(decodeURIComponent(href)).toContain("/out/clips-raw/vid1_0.00-9.00.mp4");
await link.click();
- await expect(page).toHaveURL(/\/mix\?/);
+ await expect(page).toHaveURL(/\/tools\/mix\?/);
await expect(page.locator("[data-mix-refused]")).toHaveCount(0);
// The crumb back to where the link came from.
await expect(page.locator("[data-mix-from]")).toHaveText(/report-fixture/);
diff --git a/umtool/e2e/takes.spec.ts b/umtool/e2e/takes.spec.ts
@@ -15,7 +15,7 @@ import { fileURLToPath } from "node:url";
const HERE = path.dirname(fileURLToPath(import.meta.url));
const PROJECT_DIR = path.join(HERE, "..", ".e2e-song", "reports", "takes-fixture");
const VERDICTS = path.join(PROJECT_DIR, "takes", "verdicts.json");
-const PAGE = "/browse/reports/takes-fixture/takes";
+const PAGE = "/projects/reports/takes-fixture/takes";
test("a project with no takes/ says so, and its page has no takes link", async ({ page }) => {
const res = await page.goto("/browse/reports/report-fixture/takes");