feat: FM-945 Refine Gameplay E2E Automation to Support Dynamic Assessment Trigger and Complete Level Progression - #1988
Conversation
… to scripts and dry running scripts generated with claude code
…tial 16 test cases
…ed the Monster & Fm-939 Pause Gameplay When Assessment Is Triggered
…ment Trigger and Complete Level Progressio
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds live gameplay-state helpers, rewires the assessment and level-completion E2E flows to follow natural puzzle progression, and updates stone readiness handling plus mocked assessment config so the tests wait on actual in-game transitions. ChangesNatural gameplay assessment flow
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
e2e/tests/isolated/tc-009-013-assessment.spec.ts (1)
744-748: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
registerTestswon't run standalone as implied.TC_013 waits for the first post-mini-game puzzle, but
registerTestschainsregisterTC009_012directly into_tc013with no mini-game (TC_014/TC_015) in between — those live in a separate spec. So a direct file run will hang/fail at TC_013'swaitForFunction. Consider dropping_tc013from the "direct run" path, or clarify in the doc comment that this export is only valid when the mini-game runs externally.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@e2e/tests/isolated/tc-009-013-assessment.spec.ts` around lines 744 - 748, The standalone test entrypoint is misleading because registerTests currently runs registerTC009_012 and then _tc013 without the intervening mini-game flow that TC_013 depends on. Update registerTests to either stop before _tc013 for direct file execution or revise the doc comment to clearly state that the mini-game stages (TC_014/TC_015) must be executed externally before _tc013 can run.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@e2e/tests/isolated/tc-009-013-assessment.spec.ts`:
- Around line 744-748: The standalone test entrypoint is misleading because
registerTests currently runs registerTC009_012 and then _tc013 without the
intervening mini-game flow that TC_013 depends on. Update registerTests to
either stop before _tc013 for direct file execution or revise the doc comment to
clearly state that the mini-game stages (TC_014/TC_015) must be executed
externally before _tc013 can run.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: ef8954c1-7d91-4f38-9f26-511272358caf
📒 Files selected for processing (7)
e2e/fixtures/game-fixtures.tse2e/helpers/game-state-helpers.tse2e/helpers/index.tse2e/tests/ftm-assessment-survey-flow.spec.tse2e/tests/isolated/tc-009-013-assessment.spec.tse2e/tests/isolated/tc-016-level-completion.spec.tssrc/components/stone-handler/stone-handler.ts
Changes
How to test
Ref: FM-945
Summary by CodeRabbit
Bug Fixes
Tests