https://bugzilla.wikimedia.org/show_bug.cgi?id=71635
Bug ID: 71635
Summary: QA: implement "login to <PAGE>" to speed up browser
tests
Product: Wikimedia
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: performance
Severity: enhancement
Priority: Unprioritized
Component: Quality Assurance
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Many tests follow "I am logged in" with "visit FlowPage", "I navigate to Upload
Wizard", "I visit the User page of Selenium_user2", etc. In these cases
Special:UserLogin's default behavior of loading the Main_Page upon successful
login is a waste of precious time.
MediaWiki has already solved this for human beings. Clients can pass
?returnto=Some_wiki_page to Special:UserLogin so that upon successful login the
user is redirected to Some_wiki_page. It's what the _Log in_ link on every
wiki page does, as you can see if you hover over it and note its URL.
For example,
http://en.wikipedia.beta.wmflabs.org/wiki/Special:UserLogin?returnto=Talk:Flow_QA
We could expose this as
Given I am logged in to <PAGE>
in tests. mediawiki_selenium/step_definitions/login_steps.rb would need to
recognize the presence of this optional parameter and append
?returnto=URLEncode(pageName) to LoginPage
I would prototype this but I don't know where the visit() function is defined
or documented in our webdriver-selenium-watir-cheezy-cucumber stack.
Is using
on(APIPage).client.log_in(ENV["MEDIAWIKI_USER"], ENV["MEDIAWIKI_PASSWORD"])
another alternative?
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l