Assert that the login succeeded for more helpful error messages

Change-Id: I9f985d31de86fe2a062d10ca3f51fb2d7c727798
This commit is contained in:
Niklas Laxström
2013-08-29 13:56:17 +03:00
parent 8472382a75
commit 54afab7ffc

View File

@@ -7,6 +7,9 @@ end
Given(/^I am logged in$/) do
visit(LoginPage).login_with(@mediawiki_username, @mediawiki_password)
# Assert that login worked
loggedin = !@browser.execute_script( "return mw.user.isAnon();" )
loggedin.should be_true
end
def language_to_code(language)