discourse/plugins/poll/test/javascripts/acceptance
Robert 60d62f1b7e
FIX: poll ranked choice voter list corrupting on expand (#28315)
Initially, the poll results display a maximum of 25 voters per option. If the number of voters exceeds this limit, a button allows users to load additional pages of voters.

When this button is clicked, a method is called to retrieve the additional voter information. However, there was a bug where the local tracked object was not properly updated for ranked choice voters. This is due to the existence of two attributes per option: one indicating whether new data is currently loading, and the other containing the list of voters.

Instead of updating the entire option key with the voters list, the fix requires updating the voters attribute only.

This is a small but critical change. The pull request also includes a new test that significantly increases coverage, addressing this issue and beyond.
2024-08-13 09:28:28 +02:00
..
poll-breakdown-test.js FEATURE: Add Instant Run-off Voting to Poll Plugin (Part 1: migrate existing plugin to Glimmer only) (#27204) 2024-07-04 13:34:48 +02:00
poll-builder-disabled-test.js DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
poll-builder-enabled-test.js DEV: Move core plugin TL -> group settings (#25355) 2024-01-23 11:35:14 +10:00
poll-in-reply-history-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
poll-pie-chart-test.js DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
poll-quote-test.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
poll-results-test.js FIX: poll ranked choice voter list corrupting on expand (#28315) 2024-08-13 09:28:28 +02:00
polls-bar-chart-test-desktop.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
polls-bar-chart-test-mobile.js DEV: Sort imports 2023-10-10 21:46:54 +01:00