Repository navigation
Stub leaderboard RPCs in check-cost (no live submits, no flaky cert error) - #75
Merged
Merged
Conversation
…ve project The test clicks "Eintragen" without a submit_score stub, so every run posted a real score to Supabase (and failed intermittently with ERR_CERT_AUTHORITY_INVALID where a proxy breaks the certificate). Answer every leaderboard RPC locally; the play counters keep openGame's own stub. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HjTnVkUHVtQ9PjK9JyR5pE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/browser/check-cost.mjsclicks "Eintragen" on the win card but never stubbedsubmit_score, so every run posted a real score to the live Supabase project. Where a proxy breaks the certificate (this sandbox) the request failed withERR_CERT_AUTHORITY_INVALID, which landed in the page's console errors and madeno console errorsfail intermittently (also reproducible on an unchangedmain).rpc/*leaderboard call locally (submit_score→ rank 1 of 1, everything else →[]), and letsbump_statfall through toopenGame's own counter stub.win-submit: onlycheck-costactually clicked it unstubbed (win-feedbackandleaderboard-retryalready stubsubmit_score;i18n-layoutonly reads selectors).Test plan
check-cost: 6 consecutive runs green (previously failing roughly 1 run in 2–4)win-feedbackstill green🤖 Generated with Claude Code
https://claude.ai/code/session_01HjTnVkUHVtQ9PjK9JyR5pE
Generated by Claude Code