mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Edit from /string/ format to "string" format so that login test passes.
This commit is contained in:
@@ -37,7 +37,7 @@ describe('front page', function() {
|
|||||||
var login = element(by.css("#login-tab input[value='Login']"));
|
var login = element(by.css("#login-tab input[value='Login']"));
|
||||||
login.click();
|
login.click();
|
||||||
var alertDialog = browser.switchTo().alert();
|
var alertDialog = browser.switchTo().alert();
|
||||||
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./);
|
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\".");
|
||||||
alertDialog.accept();
|
alertDialog.accept();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user