mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA] e2e remove not needed logoutPage (#772)
* remove not needed logoutPage * disable back failing check * fix failing test
This commit is contained in:
committed by
Denys Vuika
parent
2c9e68ada7
commit
946e3e2196
@@ -26,7 +26,7 @@
|
||||
import { browser } from 'protractor';
|
||||
|
||||
import { APP_ROUTES } from '../../configs';
|
||||
import { LoginPage, LogoutPage, BrowsingPage } from '../../pages/pages';
|
||||
import { LoginPage, BrowsingPage } from '../../pages/pages';
|
||||
import { Utils } from '../../utilities/utils';
|
||||
import { RepoClient } from '../../utilities/repo-client/repo-client';
|
||||
import { navigate } from '../../utilities/browser-utils';
|
||||
@@ -34,7 +34,6 @@ import { navigate } from '../../utilities/browser-utils';
|
||||
describe('Login', () => {
|
||||
const peopleApi = new RepoClient().people;
|
||||
const loginPage = new LoginPage();
|
||||
const logoutPage = new LogoutPage();
|
||||
|
||||
/* cspell:disable-next-line */
|
||||
const testUser = `user-${Utils.random()}@alfness`;
|
||||
@@ -70,7 +69,6 @@ describe('Login', () => {
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
await logoutPage.load();
|
||||
await Utils.clearLocalStorage();
|
||||
done();
|
||||
});
|
||||
@@ -147,7 +145,6 @@ describe('Login', () => {
|
||||
|
||||
it('user is able to login after changing his password - [C213104]', async () => {
|
||||
await loginPage.loginWith(testUser2.username, testUser2.password);
|
||||
await logoutPage.load();
|
||||
await peopleApi.changePassword(testUser2.username, newPassword);
|
||||
await loginPage.loginWith(testUser2.username, newPassword);
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
import { browser } from 'protractor';
|
||||
import { LoginPage, LogoutPage, BrowsingPage } from '../../pages/pages';
|
||||
import { LoginPage, BrowsingPage } from '../../pages/pages';
|
||||
import { Utils } from '../../utilities/utils';
|
||||
import { RepoClient } from '../../utilities/repo-client/repo-client';
|
||||
import { APP_ROUTES } from '../../configs';
|
||||
@@ -32,7 +32,6 @@ import { APP_ROUTES } from '../../configs';
|
||||
describe('Logout', () => {
|
||||
const page = new BrowsingPage();
|
||||
const loginPage = new LoginPage();
|
||||
const logoutPage = new LogoutPage();
|
||||
|
||||
const peopleApi = new RepoClient().people;
|
||||
|
||||
@@ -48,11 +47,6 @@ describe('Logout', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
await logoutPage.load();
|
||||
done();
|
||||
});
|
||||
|
||||
it('Sign out option is available - [C213143]', async () => {
|
||||
await page.header.userInfo.openMenu();
|
||||
expect(await page.header.userInfo.menu.isMenuItemPresent('Sign out')).toBe(true, 'Sign out option not displayed');
|
||||
|
||||
Reference in New Issue
Block a user