Fix intermittent Next.js e2e test failures due to race conditions and timing issues #6718
Codacy Production / Codacy Static Code Analysis
required action
Sep 25, 2025 in 0s
2 new security issues (1 max.).
Here is an overview of what got changed by this pull request:
Issues
======
- Added 2
Complexity increasing per file
==============================
- packages/react-instantsearch-router-nextjs/__tests__/e2e/utils.ts 15
- packages/react-instantsearch-nextjs/__tests__/e2e/backButton.test.ts 5
- packages/react-instantsearch-nextjs/__tests__/e2e/utils.ts 15
Complexity decreasing per file
==============================
+ packages/react-instantsearch-router-nextjs/__tests__/e2e/nextLink.test.ts -2
+ packages/react-instantsearch-router-nextjs/__tests__/e2e/onStateChange.test.ts -2
Clones added
============
- packages/react-instantsearch-router-nextjs/__tests__/e2e/utils.ts 3
- packages/react-instantsearch-nextjs/__tests__/e2e/utils.ts 1
Clones removed
==============
+ packages/react-instantsearch-router-nextjs/__tests__/e2e/nextLink.test.ts -2
+ packages/react-instantsearch-router-nextjs/__tests__/e2e/backButton.test.ts -3
+ packages/react-instantsearch-router-nextjs/__tests__/e2e/onStateChange.test.ts -4
+ packages/react-instantsearch-nextjs/__tests__/e2e/backButton.test.ts -1
See the complete overview on Codacy
Annotations
Check warning on line 25 in packages/react-instantsearch-nextjs/__tests__/e2e/utils.ts
codacy-production / Codacy Static Code Analysis
packages/react-instantsearch-nextjs/__tests__/e2e/utils.ts#L25
User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities
Check warning on line 25 in packages/react-instantsearch-router-nextjs/__tests__/e2e/utils.ts
codacy-production / Codacy Static Code Analysis
packages/react-instantsearch-router-nextjs/__tests__/e2e/utils.ts#L25
User controlled data in a `$(...)` is an anti-pattern that can lead to XSS vulnerabilities
Loading