Steps to replicate the issue (include links if applicable):
- Go to a wish that already has a vote, https://commtech.toolforge.org/Community_Wishlist/Wishes/W1
- If there is no vote, just complete to vote
- Refresh page
What happens?:
Support Wish appears briefly before it changes back to Already Supported
What should have happened instead?:
Support Wish should not appear briefly
Other information (browser name/version, screenshots, etc.):
OS: macOS Sequoia 15.6
Browser: Chrome 138
Derived Requirements
- On wish or focus area pages, if the user has already voted, the correct state (Already Supported) must be displayed immediately on page load.
- The "Support Wish" (or "Submit Focus Area") button must not briefly appear after a page refresh before switching to the correct voted state.
- Voting state persistence must be handled in a way that avoids UI flicker, ensuring seamless user experience across reloads.
- This behavior must be consistent across all supported browsers and devices.
Test Steps
Test Case 1: Prevent flicker after voting on a wish
- Navigate to a wish page without an existing vote.
- Click Support Wish to cast a vote.
- Refresh the page.
- ✅❓❌⬜ AC1: Confirm that Already Supported displays immediately with no flicker of "Support Wish".
Test Case 2: Refresh when already voted
- Navigate to a wish page where you have already voted (e.g., W1).
- Refresh the page.
- ✅❓❌⬜ AC2: Confirm that Already Supported displays immediately without showing "Support Wish" first.
Test Case 3: Verify consistency across focus areas
- Navigate to a focus area where you have already voted.
- Refresh the page.
- ✅❓❌⬜ AC3: Confirm that Already Supported (or equivalent) appears instantly without flicker.
Test Case 4: Verify unaffected behavior for non-voters
- Navigate to a wish/focus area where you have not voted.
- Refresh the page.
- ✅❓❌⬜ AC4: Confirm that the "Support Wish" button remains available and does not incorrectly display Already Supported.
QA Results - Meta Beta
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | pass per T401726#11160990 |
| 2 | ✅ | T401726#11149532 |
| 3 | ✅ | pass per T401726#11160990 |
| 4 | ✅ | T401726#11149532 |