Skip to content

Conversation

@scttcper
Copy link
Member

No description provided.

@scttcper scttcper requested review from a team November 20, 2025 00:14
@scttcper scttcper requested a review from a team as a code owner November 20, 2025 00:14
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 20, 2025
it('can navigate next/previous events', async () => {
render(<IssueDetailsEventNavigation {...defaultProps} />, {
deprecatedRouterMocks: true,
initialRouterConfig: latestRouterConfig,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing organization prop in render calls

The tests define an organization variable at the top level and use it to configure mock API responses in beforeEach, but don't pass it to the render() function. This causes the component to use a different organization instance created internally by initializeOrg(). While both have the same slug, this inconsistency could cause issues if organization objects are compared by reference or if other properties differ between instances.

Fix in Cursor Fix in Web

@scttcper scttcper merged commit c4928be into master Nov 20, 2025
49 checks passed
@scttcper scttcper deleted the scttcper/test-deprecated-mock-issues branch November 20, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants