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

            Bug ID: 62001
           Summary: browser readyState should be "loading" until login
                    completes
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: browser-test-bug
          Severity: normal
          Priority: Unprioritized
         Component: User login and signup
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: cmcma...@wikimedia.org
                CC: swall...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

Seen in fairly recent times, particularly for Internet Explorer: 

Seen particularly in browser tests, which move quickly from logging in to a
particular URL: 

It seems that the browser readyState is moved from "loading" to either
"interactive" or "complete" before the login process finishes.  I believe this
because I see automated tests that log in, then navigate to a URL to perform
some action only to get an error message that the user is not logged in. 

I got around this by adding some code to the shared login method here to check
for complete login before the tests proceed: 
https://github.com/wikimedia/mediawiki-selenium/commit/a1d7fda4af531773a748f990e294fa5adf0b0628

However, this causes problems for tests for the Language teams because every
aspect of the user-specific signs of being logged in (Logout link, Preferences,
etc.) is localized, making it difficult or impossible to identify a generic way
to confirm login. 

It would be better to control the browser readyState properly.

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