[ACS-1129]fix signOut method to work for SSO as well

This commit is contained in:
Adina Parpalita
2021-01-13 19:02:14 +02:00
committed by GitHub
parent b49b928382
commit e227248324

View File

@@ -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> {