discourse/plugins/poll/spec/lib
Régis Hanol 17c414186f
FIX: Include poll options in HTML email notifications (#37812)
Previously, the HTML variant of email notifications replaced the entire
poll with a "Click to view the poll" link, while the plain-text variant
included all the poll options. This meant the HTML email contained less
information than its plain-text counterpart.

Now the `reduce_cooked` callback preserves the poll title and options
list, strips the interactive parts (vote counts, buttons) and
`data-poll-option-id` attributes, and still appends the link to vote.

This works for all poll types (regular, multiple, number, ranked_choice)
since they all share the same `.poll-container > ul/ol > li` structure.

https://meta.discourse.org/t/393728
2026-02-17 11:39:42 +01:00
..
new_post_manager_spec.rb DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
poll_spec.rb FIX: Extract polls correctly when post contains multiple quotes (#36802) 2025-12-19 15:44:41 +01:00
polls_updater_spec.rb FEATURE: dynamic poll support (#34368) 2025-08-19 16:43:36 +10:00
polls_validator_spec.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
pretty_text_spec.rb FIX: Include poll options in HTML email notifications (#37812) 2026-02-17 11:39:42 +01:00
ranked_choice_spec.rb FIX: poll ranked choice result algo majority check (#28191) 2024-08-02 08:51:26 +02:00
search_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00