[ACA-4242] Update e2e login method to account for the changes done for ACA-4197 (#1910)

* build dev instead of e2e

* clear localStorage before new login

* re-enable all tests

* try again build.e2e

* enable one test

* exclude again

* no message

* no message
This commit is contained in:
Adina Parpalita
2021-01-11 17:55:14 +02:00
committed by GitHub
parent 13fa065654
commit b8feed47c3
4 changed files with 14 additions and 3 deletions

View File

@@ -26,6 +26,8 @@
import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav } from '../components/components';
import { SIDEBAR_LABELS } from './../configs';
import { Page } from './page';
import { waitForPresence } from './../utilities/utils';
import { LoginPage } from './login-page';
export class BrowsingPage extends Page {
header = new Header(this.appRoot);
@@ -38,6 +40,7 @@ export class BrowsingPage extends Page {
async signOut(): Promise<void> {
await this.header.openMoreMenu();
await this.header.menu.clickMenuItem('Sign out');
await waitForPresence(new LoginPage().login.submitButton);
}
async clickPersonalFiles(): Promise<void> {

View File

@@ -27,7 +27,7 @@ import { LoginComponent } from '../components/components';
import { Page } from './page';
import { APP_ROUTES } from '../configs';
import { waitForPresence } from '../utilities/utils';
import { Utils, waitForPresence } from '../utilities/utils';
import { BrowserActions } from '@alfresco/adf-testing';
export class LoginPage extends Page {
@@ -38,6 +38,8 @@ export class LoginPage extends Page {
}
async load() {
await super.load();
await Utils.clearLocalStorage();
await super.load();
await waitForPresence(this.login.submitButton);
}