Skip to content

flake: OrganizationRedirect.test.tsx #552

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

Closed
ethanndickson opened this issue Apr 2, 2025 · 2 comments
Closed

flake: OrganizationRedirect.test.tsx #552

ethanndickson opened this issue Apr 2, 2025 · 2 comments
Labels

Comments

@ethanndickson
Copy link
Member

https://github.com/coder/coder/actions/runs/14209936276/job/39815340226

FAIL test src/pages/OrganizationSettingsPage/OrganizationRedirect.test.tsx
  ● OrganizationRedirect › redirects to default organization

    TestingLibraryElementError: Unable to find an element with the text: Organization Settings. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

[...]
       70 | 		);
      71 | 		const router = await renderPage();
    > 72 | 		const form = screen.getByText("Organization Settings");
         | 		                    ^
      73 | 		expect(form).toBeInTheDocument();
      74 | 		expect(router.state.location.pathname).toBe(
      75 | 			`/organizations/${MockDefaultOrganization.name}`,
	`/organizations/${MockDefaultOrganization.name}`,

@Kira-Pilot
Copy link
Member

@ethanndickson we looked into this last sprint and were unable to reproduce. The test is still intact on main. Are you still running into this or can we close for now?

@ethanndickson
Copy link
Member Author

ethanndickson commented Apr 29, 2025

Nope, I'm happy to close for now. We never see the js tests flake, so I was surprised to see this.

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

5 participants