Open
Description
https://github.com/coder/coder/actions/runs/13705988064
During test: Finished test org admin can see admin settings
[onConsole] Failed to load resource: the server responded with a status of 400 (Bad Request)
[onResponse] url=http://localhost:3111/api/v2/users/login status=201 body={"session_token":"C2euRBAaZT-WvkFVoJHnfrcAqmltrJLDF"}
[onConsole] Warning: An unhandled error was caught from submitForm() st
[onResponse] url=http://localhost:3111/api/v2/authcheck status=400 body=Something is wrong with your CSRF token. Please refresh the page. If this error persists, try clearing your cookies.
[onResponse] url=http://localhost:3111/api/v2/users/me status=200 body={"id":"16c04321-619f-4ea7-931b-5b26b50c5f90","username":"42be09bf","avatar_url":"","name":"42be09bf","email":"[email protected]","created_at":"2025-03-06T18:57:06.025675Z","updated_at":"2025-03-06T18:57:06.433609Z","last_seen_at":"2025-03-06T18:57:06.433609Z","status":"active","login_type":"password","organization_ids":["58a3a671-66a3-47e8-aa56-084727e5faad"],"roles":[]}
==> Errors
/home/runner/work/coder/coder/site/e2e/helpers.ts:79:
at helpers.ts:79
77 | await page.getByLabel("Password").fill(options.password);
78 | await page.getByRole("button", { name: "Sign In" }).click();
> 79 | await expectUrl(page).toHavePathName("/workspaces");
| ^
80 | // biome-ignore lint/suspicious/noExplicitAny: update once logged in
81 | (ctx as any)[Symbol.for("currentUser")] = options;
82 | }
Error: The page does not have the expected URL pathname.
Expected: "/workspaces"
Actual: "/login"
Video:
https://github.com/user-attachments/assets/73e47807-83d0-4d3e-b799-759653360921