Skip to content

fix(result): incomplete test xp lost when the next result is zen (@boergeson) - #8381

Open
boergeson wants to merge 2 commits into
monkeytypegame:masterfrom
boergeson:fix/zen-incomplete-xp
Open

fix(result): incomplete test xp lost when the next result is zen (@boergeson)#8381
boergeson wants to merge 2 commits into
monkeytypegame:masterfrom
boergeson:fix/zen-incomplete-xp

Conversation

@boergeson

Copy link
Copy Markdown
Contributor

Description

Abandoned tests are pushed to incompleteTests and sent with the next saved result. If that next result is a zen test the backend returns 0 xp straight away, but the frontend still clears the list after saving, so the xp for the abandoned tests is just gone. Thats what the reporter sees: quit a custom test, finish a zen test, no incomplete xp, and none on the next words/time test either.

Zen still gets no xp for the test itself, but the incomplete part is now awarded. The list cant just be carried over on the frontend because the result spacing check counts incompleteTestSeconds.

Added a spec, on master it gets 0, here it gets the 5 xp from the incomplete test in the fixture.

Closes #8170

@monkeytypegeorge monkeytypegeorge added backend Server stuff api A change to the Application Programming Interface (API) labels Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api A change to the Application Programming Interface (API) backend Server stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Test To Zen Imcomplete Test Problem

2 participants