feat(shared): add apiToolPath() and section-prefixed routes; drop MODALITY_URL_SLUG

This commit is contained in:
SnapOtter
2026-06-20 11:05:44 +08:00
parent 790747188a
commit 9ca901f8d5
4 changed files with 47 additions and 18 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ test.describe("Navigation", () => {
});
test("clicking a tool on home page navigates to tool page", async ({ loggedInPage: page }) => {
// Routes are /:modality/:toolId (App.tsx line 243).
// Routes are /:section/:toolId (App.tsx line 243).
// Resize route = /image/resize (constants.ts: route "/resize" + modality "image",
// post-processed at line 1793 with MODALITY_URL_SLUG prefix).
// section prefix added via toolSection() in the route post-processing loop).
await page.goto("/");
// Click on Resize tool