fix indentation, remove fdescribe, added forgotten afterAll

This commit is contained in:
Adina Parpalita
2017-11-14 12:36:27 +02:00
parent 1b879a2205
commit 301771fa16
2 changed files with 10 additions and 8 deletions
+2 -4
View File
@@ -47,12 +47,10 @@ export class LoginPage extends Page {
});
}
loginWith(username: string, password?: string): promise.Promise<void> {
loginWith(username: string, password?: string): promise.Promise<any> {
const pass = password || username;
return this.login.enterCredentials(username, pass).submit()
.then(() => {
super.waitForApp();
});
.then(() => super.waitForApp());
}
loginWithAdmin(): promise.Promise<any> {