forked from molecule-ai/molecule-core
#2073 caught workspace-scoped 401s but missed non-workspace paths. SkillsTab.tsx alone fetches /plugins and /plugins/sources, both outside the /workspaces/<id>/* tree. Either of those 401s with the tenant admin bearer in SaaS mode → canvas/src/lib/api.ts:62-74 redirects to AuthKit → page navigates away mid-test → next locator times out. Same failure signature observed at 16:03Z post-#2073 merge: e2e/staging-tabs.spec.ts:45:7 › tab: skills TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 5000ms - navigated to "https://scenic-pumpkin-83.authkit.app/?..." Broaden the route to "**" with `request.resourceType() !== "fetch"` short-circuit (preserves HTML/JS/CSS pass-through) and a /cp/auth/me skip (the dedicated mock above wins). Same 401 → empty-body conversion logic; just a wider net. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| e2e | ||
| public | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| components.json | ||
| Dockerfile | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| playwright.staging.config.ts | ||
| postcss.config.js | ||
| tailwind.config.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||