Updated the login test to match the new error message

This commit is contained in:
sablecliff 2015-05-01 13:21:12 +10:00
parent e3570e609b
commit 2c65e4df6a

View file

@ -37,7 +37,7 @@ describe('front page', function() {
var login = element(by.css("#login-tab input[value='Login']"));
login.click();
var alertDialog = browser.switchTo().alert();
expect(alertDialog.getText()).toMatch(/Username or password incorrect./);
expect(alertDialog.getText()).toMatch(/Uh-oh - your username or password is incorrect.\n- Make sure your username or email is typed correctly.\n- You may have signed up with Facebook, not email. Double-check by trying Facebook login.\n- If you forgot your password, click "Forgot Password"."Username or password incorrect./);
alertDialog.accept();
});