mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
parent
b5ae4ebff5
commit
d485aee674
@ -59,7 +59,7 @@ export class LoginPage {
|
||||
const authType = await LocalStorageUtil.getConfigField('authType');
|
||||
const oauth: any = await LocalStorageUtil.getConfigField('oauth2');
|
||||
|
||||
if ((!authType || authType === 'OAUTH') && oauth.implicitFlow) {
|
||||
if ((!authType || authType === 'OAUTH') && oauth?.implicitFlow) {
|
||||
await this.loginSSOIdentityService(username, password);
|
||||
} else {
|
||||
await this.loginBasicAuth(username, password);
|
||||
|
@ -20,6 +20,7 @@ import { BrowserVisibility } from '../../core/utils/browser-visibility';
|
||||
import { BrowserActions } from '../../core/utils/browser-actions';
|
||||
import { DropdownPage } from '../../core/pages/material/dropdown.page';
|
||||
import { FormFields } from '../../core/pages/form/form-fields';
|
||||
import { Logger } from '../../core/utils/logger';
|
||||
|
||||
export class StartProcessPage {
|
||||
|
||||
@ -64,9 +65,17 @@ export class StartProcessPage {
|
||||
await BrowserActions.clearSendKeys(this.processNameInput, name);
|
||||
}
|
||||
|
||||
async selectFromProcessDropdown(name): Promise<void> {
|
||||
await this.clickProcessDropdownArrow();
|
||||
await this.selectProcessOption(name);
|
||||
async selectFromProcessDropdown(name: string, retry = 0): Promise<void> {
|
||||
Logger.log(`select Process Dropdown retry: ${retry}`);
|
||||
try {
|
||||
await this.clickProcessDropdownArrow();
|
||||
await this.selectProcessOption(name);
|
||||
} catch (error) {
|
||||
if (retry < 3) {
|
||||
retry++;
|
||||
await this.selectFromProcessDropdown(name, retry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async selectFromApplicationDropdown(name): Promise<void> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user