docs(plan): correct login test filename to avoid route walker collision
Renamed references from +page.test.ts to login.test.ts throughout,
matching the fix in 8896159. Keeps the plan accurate for re-runs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
| `src/lib/components/Shell.test.ts` | Shell component tests |
|
||||
| `src/routes/+layout.ts` | `load()` → `await bootstrap()` |
|
||||
| `src/routes/login/+page.svelte` | Login form UI + behavior |
|
||||
| `src/routes/login/+page.test.ts` | Login page tests |
|
||||
| `src/routes/login/login.test.ts` | Login page tests (note: NOT `+page.test.ts` — the `+` prefix would trigger SvelteKit's route walker) |
|
||||
| `src/routes/search/+page.svelte` | "Coming soon" placeholder |
|
||||
| `src/routes/playlists/+page.svelte` | "Coming soon" placeholder |
|
||||
| `vitest.setup.ts` | jest-dom matcher registration |
|
||||
@@ -830,11 +830,11 @@ so the Shell's sidebar nav works end-to-end before the real features land."
|
||||
|
||||
**Files:**
|
||||
- Create: `web/src/routes/login/+page.svelte`
|
||||
- Create: `web/src/routes/login/+page.test.ts`
|
||||
- Create: `web/src/routes/login/login.test.ts`
|
||||
|
||||
- [ ] **Step 1: Write the failing test**
|
||||
|
||||
Create `web/src/routes/login/+page.test.ts`:
|
||||
Create `web/src/routes/login/login.test.ts`:
|
||||
|
||||
```ts
|
||||
import { afterEach, describe, expect, test, vi } from 'vitest';
|
||||
@@ -1060,7 +1060,7 @@ Expected: PASS — 10 tests (6 `test(...)` blocks + 4 from `test.each` with 4 ro
|
||||
- [ ] **Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add web/src/routes/login/+page.svelte web/src/routes/login/+page.test.ts
|
||||
git add web/src/routes/login/+page.svelte web/src/routes/login/login.test.ts
|
||||
git commit -m "feat(web): add login page with returnTo support and typed error UX
|
||||
|
||||
Inline errors for invalid creds vs. server-side failures. Validates
|
||||
|
||||
Reference in New Issue
Block a user