Skip to content

flake test-e2e-premium and test-e2e #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ethanndickson opened this issue Mar 7, 2025 · 6 comments
Open

flake test-e2e-premium and test-e2e #461

ethanndickson opened this issue Mar 7, 2025 · 6 comments
Labels

Comments

@ethanndickson
Copy link
Member

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

@ethanndickson
Copy link
Member Author

Spotted again on main https://github.com/coder/coder/actions/runs/13933935618

=> 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"

@spikecurtis
Copy link

@johnstcn
Copy link
Member

@ethanndickson
Copy link
Member Author

@sreya
Copy link

sreya commented Apr 2, 2025

I disabled the tests, we should ensure to re-enable them when the source of their flakiness is address

@aslilac aslilac removed their assignment Apr 2, 2025
@spikecurtis
Copy link

Flake with same signature is happening on the non-premium test-e2e

https://github.com/coder/coder/actions/runs/14334201273/job/40177026570

@spikecurtis spikecurtis changed the title flake test-e2e-premium flake test-e2e-premium and test-e2e Apr 9, 2025
@brettkolodny brettkolodny self-assigned this Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants