flow_anon's "Add new Flow topic" wait_until 20 seconds to check
page.text.include? "1 second ago" or page.text.include? "just now"
But computers can be slow; https://saucelabs.com/jobs/79f3dc0639f74c09a2f9640edd0d971d failed because the new topic showed "3 seconds ago". Besides, the same test page can be simultaneously hit by other browsers, so some topic appearing recently doesn't test successful addition of this topic.
The test should instead look for a topic titlebar (css: '.flow-topic-container .flow-titlebar' ) with a h2 matching the random number it just inserted, and within the titlebar it should accept '.flow-datestamp .flow-ago' containing "seconds ago" as well as "1 second ago" or "just now".
Version: master
Severity: minor