Skip to content

Fix failing UI tests: update mistake threshold from 5 to 10 - #99

Merged
usharik merged 1 commit into
copilot/increase-mistakes-before-adsfrom
copilot/fix-github-actions-job-again
Aug 28, 2026
Merged

Fix failing UI tests: update mistake threshold from 5 to 10#99
usharik merged 1 commit into
copilot/increase-mistakes-before-adsfrom
copilot/fix-github-actions-job-again

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the failing ui-tests CI job from run #33192407135.

Root Cause

The mistake threshold was increased from 5 to 10 in a prior commit, but the UI tests in DeclensionQuizTest.kt still hardcoded the old value /5, causing 5 test failures:

  • Tests checking "0/5" / "1/5" failed because the badge now shows /10
  • fiveMistakesDeductPenaltyPoint only made 5 wrong placements, never reaching the new threshold of 10

Changes

  • Updated all "0/5""0/10" and "1/5""1/10" assertion strings
  • Renamed fiveMistakesDeductPenaltyPointtenMistakesDeductPenaltyPoint
  • Changed repeat(5)repeat(10) to actually trigger the penalty threshold
  • Updated comments accordingly

Co-authored-by: usharik <15856751+usharik@users.noreply.github.com>
Copilot AI requested a review from usharik August 28, 2026 17:16
@usharik
usharik marked this pull request as ready for review August 28, 2026 17:20
@usharik
usharik merged commit 3132432 into main Aug 28, 2026
5 checks passed
@usharik
usharik deleted the copilot/fix-github-actions-job-again branch August 28, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants