discourse/plugins/discourse-rss-polling
Alan Guo Xiang Tan 55b05c921b
DEV: Add client settled checks for system tests (#35230)
This change seeks to improve the reliability of our system tests by
resolving the lack of consistency in the state of the client side
application between steps in a system test. This is achieved by patching
various action methods in `Capybara::Playwright::Node` and
`Capybara::Playwright::Browser` so that the methods execute an async
JavaScript function on the client side that waits for the client side
application to reach a settled state. A settled state is currently
defined as:

1. No inflight ajax requests. (_messageBus and presence requests are
excluded_)
2. 2 event cycles of the Javascript event loop has happened for for all
"click", "input", "mousedown", "keydown", "focusin", "focusout",
"touchstart", "change", "resize", "scroll" DOM events that fired.

For debugging purposes, a `--debug-client-settled` CLI flag has been
added to `bin/rspec`. When used, detailed debugging information will be
printed to the browser's console as well as to `stdout` of the
`bin/rspec` process.

This change was inspired by
https://evilmartians.com/chronicles/flaky-tests-be-gone-long-lasting-relief-chronic-ci-retry-irritation
and the https://github.com/makandra/capybara-lockstep rubygem.
2025-10-10 11:03:18 +08:00
..
app DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
assets DEV: Resolve deprecated route names in rss-polling (#35084) 2025-09-30 22:07:07 +01:00
config Update translations (#34804) 2025-09-15 10:47:22 +02:00
db/migrate DEV: avoid calling sidekiq in migration (#33957) 2025-07-30 11:57:04 +10:00
lib/discourse_rss_polling DEV: Normalize route and namespace setup in plugins (#34962) 2025-09-25 12:35:29 +02:00
spec DEV: Add client settled checks for system tests (#35230) 2025-10-10 11:03:18 +08:00
plugin.rb DEV: Remove obsolete register_svg_icon checks (#35067) 2025-09-30 15:51:44 +02:00
README.md

Discourse RSS Polling Build Status

Import RSS feeds from different sources into your Discourse.

Install

Add git clone https://github.com/discourse/discourse-rss-polling.git to the plugin section in your app.yml file. Please refer to Install Plugins in Discourse for installation instructions.

Documentation can be found at Configure the Discourse RSS Polling Plugin.