[openstreetmap/openstreetmap-website] Test failures on issues pagination (Issue #5127)

Andy Allan notifications at github.com
Thu Aug 29 11:00:35 UTC 2024


Capybara has "intelligent waiting" by default, where it doesn't fail assertions immediately after a click, it retries until it detects the content on the page and then runs the assertions. So I wonder if it's not that the next page is taking 2+ seconds to render (and that would be a problem in itself) but rather that the turbo has just started to run, but capybara thinks the content is already present and so immediately tests it, before turbo is finished (which might be only a few ms later).

So it might not be related to timeouts (and there's no timeout information in the error) but rather that capybara's running too quickly. In which case extending the (maximum) wait time might not help.

It's perhaps notable that this particular assertion isn't checking that a specific thing will appear (e.g. specific text, or html with a specific id, from the second page of results) that capybara would normally intelligently wait for. Instead it's checking for html that's also on the original page (just in a different count). Could that be interfering with the intelligent waiting?

https://github.com/teamcapybara/capybara#asynchronous-javascript-ajax-and-friends

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5127#issuecomment-2317325974
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5127/2317325974 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240829/8debb0de/attachment.htm>


More information about the rails-dev mailing list