You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @adityamukesh — happy to have you take this on! I've assigned you the issue. Your proposed coverage is a good starting point.
For the first PR, please focus on frontend/pages/problems/[slug].js. We'll review that together before moving on to the leaderboard in a separate PR.
Expectations for the first pass:
Start from the latest default branch and check existing tests so we add missing coverage without duplicating it. Follow the project's Jest and React Testing Library conventions.
Cover player-visible behavior: problem details and testcase tabs; Run Code and Submit loading/results; accepted and wrong-answer feedback; and API failure/timeout feedback where the page supports it. Assert what the player sees and can do, rather than internal dispatches or component state.
Mock API calls and external editor/execution dependencies at their boundaries. Keep the tests deterministic, with no live services or arbitrary sleeps, while exercising the page's actual behavior.
Keep this PR scoped to tests and necessary test setup. If you uncover a production bug or need a dependency/configuration change, flag it in the draft PR before expanding scope. No need to add features to make a test possible.
Include regression evidence: temporarily break the behavior under test, confirm the relevant test fails, then restore the code. Describe the checks in the PR; don't commit the deliberate breakage.
Run cd frontend && npm test && npm run lint. Include the commands, results, coverage added, and any existing failures or remaining gaps in the PR description. Don't weaken or skip checks to get a green result.
Please open a small draft PR early with your first useful tests so we can give feedback before you build out the whole suite. Let us know roughly when you expect that first draft and ask here if anything is unclear. Merge will follow review and passing checks; useful, maintainable coverage matters more than test count. Looking forward to your contribution!
Activity
adityamukesh commentedon Oct 8, 2026
Hi @sennaicodes! I can add frontend tests for the core player pages.
Test Coverage Plan:
problems/[slug].js:leaderboard.js:@testing-library/user-eventfollowing the existing test conventions.Could you assign this to me? I will open a PR with comprehensive test suites!
sennaicodes commentedon Oct 13, 2026
Thanks @adityamukesh — happy to have you take this on! I've assigned you the issue. Your proposed coverage is a good starting point.
For the first PR, please focus on
frontend/pages/problems/[slug].js. We'll review that together before moving on to the leaderboard in a separate PR.Expectations for the first pass:
cd frontend && npm test && npm run lint. Include the commands, results, coverage added, and any existing failures or remaining gaps in the PR description. Don't weaken or skip checks to get a green result.Please open a small draft PR early with your first useful tests so we can give feedback before you build out the whole suite. Let us know roughly when you expect that first draft and ask here if anything is unclear. Merge will follow review and passing checks; useful, maintainable coverage matters more than test count. Looking forward to your contribution!