mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-08-07 17:48:27 +00:00
[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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user