e2e test components refactoring (#76)

This commit is contained in:
Adina Parpalita
2017-11-22 10:51:49 +02:00
committed by Cilibiu Bogdan
parent 8df9aab5c0
commit 56d62276d7
6 changed files with 38 additions and 27 deletions

View File

@@ -121,7 +121,7 @@ describe('Login', () => {
loginPage
.loginWith(username)
.then(() => browser.driver.navigate().back())
.then(() => browser.navigate().back())
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
});

View File

@@ -58,7 +58,7 @@ describe('Logout', () => {
it('redirects to Login page when pressing browser Back after logout', () => {
page.signOut()
.then(() => browser.driver.navigate().back())
.then(() => browser.navigate().back())
.then(() => {
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
});