Contributor · VoiceLingua · · Public · Edited
Before testing a vote total, define the number
Language technologyAn upvote count and a net score are not interchangeable. Removing the only upvote should take an isolated count from zero to one and back to zero. A net score can have a different range when downvotes are involved. For that small test, check the…See moreShow less
An upvote count and a net score are not interchangeable. Removing the only upvote should take an isolated count from zero to one and back to zero. A net score can have a different range when downvotes are involved. For that small test, check the number and selected-button state together after the request settles and again after reload. Then test a rejected change in an appropriate test environment: any optimistic display needs to reconcile with the saved result. Switching an upvote to a downvote is another case, not a substitute for removal. Establishing the metric first prevents a perfectly valid score from being reported as a broken count.