https://bugzilla.wikimedia.org/show_bug.cgi?id=61582

            Bug ID: 61582
           Summary: Flow: browser test checks for post "1 second ago" but
                    the test can display "3 seconds ago"
           Product: MediaWiki extensions
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Flow
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: sp...@wikimedia.org
                CC: ebernhard...@wikimedia.org, mpinc...@wikimedia.org,
                    pandiculat...@gmail.com, sp...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

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".

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to