[ACA-4264] refactor page load and loginWith methods (#1952)

* update extensions json files

* no message

* on login, sign out if anyone is already logged in

* one more selector override needed by ACA-4262
This commit is contained in:
Adina Parpalita
2021-01-29 14:27:32 +02:00
committed by GitHub
parent bd81f52cfe
commit 2f8d3d58c4
16 changed files with 6666 additions and 4417 deletions

View File

@@ -26,8 +26,6 @@
import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav } from '../components/components';
import { SIDEBAR_LABELS } from './../configs';
import { Page } from './page';
import { BrowserVisibility } from '@alfresco/adf-testing';
import { browser, by } from 'protractor';
export class BrowsingPage extends Page {
header = new Header(this.appRoot);
@@ -37,12 +35,6 @@ export class BrowsingPage extends Page {
dataTable = new DataTable(this.appRoot);
pagination = new Pagination(this.appRoot);
async signOut(): Promise<void> {
await this.header.openMoreMenu();
await this.header.menu.clickMenuItem('Sign out');
await BrowserVisibility.waitUntilElementIsPresent(browser.element(by.css('[class*="login-content"] input#username')));
}
async clickPersonalFiles(): Promise<void> {
await this.sidenav.clickLink(SIDEBAR_LABELS.PERSONAL_FILES);
}