Steps to replicate the issue (include links if applicable):
- Add a vote to a wish
- Observe the vote count in the wish-index table
- Remove the vote by blanking the page
- Go back to the wish index
What happens?:
The wish still has >= 1 votes.
What should have happened instead?:
It should have 0 votes, since all votes were removed.
Derived Requirement
Ensure that the vote count for a wish in the wish-index table updates to zero when all associated votes are removed.
Test Steps
Test Case 1: Verify Vote Count Updates to Zero When All Votes Are Removed
- Navigate to the Community Wishlist/Wishes page on beta or the relevant test wiki.
- Locate an existing wish in the wish-index table.
- Add a vote to the wish.
- Observe and record the current vote count displayed for the wish.
- Remove the vote by blanking the page (deleting vote content).
- Return to the wish-index page and refresh it.
- ✅❓❌⬜ AC1: Confirm that the vote count for the wish has updated to 0 after all votes were removed.
- ✅❓❌⬜ AC2: Confirm that no cached or stale vote count (≥1) is displayed in the wish-index after removal.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T406669#11341024 |
| 2 | ✅ | T406669#11341024 |