mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-1129]fix signOut method to work for SSO as well
This commit is contained in:
@@ -26,8 +26,8 @@
|
|||||||
import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav } from '../components/components';
|
import { Header, DataTable, Pagination, Toolbar, Breadcrumb, Sidenav } from '../components/components';
|
||||||
import { SIDEBAR_LABELS } from './../configs';
|
import { SIDEBAR_LABELS } from './../configs';
|
||||||
import { Page } from './page';
|
import { Page } from './page';
|
||||||
import { waitForPresence } from './../utilities/utils';
|
import { BrowserVisibility } from '@alfresco/adf-testing';
|
||||||
import { LoginPage } from './login-page';
|
import { browser, by } from 'protractor';
|
||||||
|
|
||||||
export class BrowsingPage extends Page {
|
export class BrowsingPage extends Page {
|
||||||
header = new Header(this.appRoot);
|
header = new Header(this.appRoot);
|
||||||
@@ -40,7 +40,7 @@ export class BrowsingPage extends Page {
|
|||||||
async signOut(): Promise<void> {
|
async signOut(): Promise<void> {
|
||||||
await this.header.openMoreMenu();
|
await this.header.openMoreMenu();
|
||||||
await this.header.menu.clickMenuItem('Sign out');
|
await this.header.menu.clickMenuItem('Sign out');
|
||||||
await waitForPresence(new LoginPage().login.submitButton);
|
await BrowserVisibility.waitUntilElementIsPresent(browser.element(by.css('[class*="login-content"] input#username')));
|
||||||
}
|
}
|
||||||
|
|
||||||
async clickPersonalFiles(): Promise<void> {
|
async clickPersonalFiles(): Promise<void> {
|
||||||
|
Reference in New Issue
Block a user