Last modified: 2014-03-05 19:24:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64001, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62001 - browser readyState should be "loading" until login completes
browser readyState should be "loading" until login completes
Status: NEW
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: browser-test-bug
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-27 16:08 UTC by Chris McMahon
Modified: 2014-03-05 19:24 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Chris McMahon 2014-02-27 16:08:43 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links