fix: scope /e2e/ gitignore to root only, remove dead apiLogin from security spec

This commit is contained in:
Your Name
2026-03-16 15:10:38 -05:00
parent a5b712fdde
commit 1d2f0ed25f
2 changed files with 1 additions and 13 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ planning/
systems/
# Dev test scripts
e2e/
/e2e/
# Release/Deployment Artifacts
RELEASE_NOTES_*.md
-12
View File
@@ -20,18 +20,6 @@ import { username, password } from "./fixtures/test-helpers";
* - Route-level ownership logic (covered by playlists.route.test.ts)
*/
async function apiLogin(
page: Parameters<typeof test>[1] extends (args: infer A) => unknown ? never : never,
// Use page.request directly from test fixture instead
req: { post: (url: string, options?: Record<string, unknown>) => Promise<{ ok: () => boolean; json: () => Promise<unknown> }> },
u: string,
p: string,
): Promise<string> {
const res = await req.post("/api/auth/login", { data: { username: u, password: p } });
if (!res.ok()) throw new Error(`Login failed as ${u}`);
return ((await res.json()) as { token: string }).token;
}
const ATTACKER_USER = `attacker_${Date.now()}`;
const ATTACKER_PASS = "AttackerPass123!";