discourse/plugins/poll
Jarek Radosz 619f132f57
DEV: Check for poll element presence (#27765)
Fixes a flaky test. `afterUpdate` from chart.js is not integrated with the runloop and component lifecycle, as a result we have no guarantee on when it will happen. The easiest change we can do for now is ensuring we actually have the DOM we expect to have, and if not, we exit early.


Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Co-authored-by: merefield <merefield@gmail.com>
2024-07-08 13:58:35 +02:00
..
app 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
assets DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
config 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
db DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
jobs/regular DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lib 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
spec FIX: nested polls 2024-05-03 19:46:13 +02:00
test/javascripts DEV: Check for poll element presence (#27765) 2024-07-08 13:58:35 +02:00
plugin.rb DEV: Do not attempt to update polls if there are no polls before and after (#26573) 2024-04-12 13:16:10 +08:00