[DO NOT MERGE] try reload search conf (#5820)

* try reload

* fix

* provide

* fix

* try
This commit is contained in:
Eugenio Romano 2020-06-27 14:26:51 +01:00 committed by GitHub
parent 238521e9be
commit 1aa1f12c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 0 deletions

View File

@ -53,6 +53,7 @@ export class SearchResultComponent implements OnInit, OnDestroy {
}
ngOnInit() {
this.queryBuilder.resetToDefaults();
this.sorting = this.getSorting();

View File

@ -17,6 +17,7 @@
import { AlfrescoApiCompatibility as AlfrescoApi, AlfrescoApiConfig } from '@alfresco/js-api';
import { browser } from 'protractor';
import { Logger } from '../utils/logger';
export class ApiService {
@ -66,6 +67,8 @@ export class ApiService {
}
this.config.oauth2.implicitFlow = false;
Logger.log('Api Service configuration' + JSON.stringify(this.config));
this.apiService = new AlfrescoApi(this.config);
}

View File

@ -19,6 +19,7 @@ import { element, by, browser, protractor } from 'protractor';
import { BrowserVisibility } from '../utils/browser-visibility';
import { BrowserActions } from '../utils/browser-actions';
import { LocalStorageUtil } from '../utils/local-storage.util';
import { Logger } from '../utils/logger';
export class LoginSSOPage {
@ -50,6 +51,7 @@ export class LoginSSOPage {
}
async login(username: string, password: string) {
Logger.log('Login With ' + username);
const authType = await LocalStorageUtil.getConfigField('authType');
@ -61,6 +63,8 @@ export class LoginSSOPage {
}
async loginSSOIdentityService(username: string, password: string) {
Logger.log('Login With ' + username);
browser.ignoreSynchronization = true;
const loginURL: string = browser.baseUrl + (browser.params.loginRoute ? browser.params.loginRoute : '');

View File

@ -66,4 +66,5 @@ export class LocalStorageUtil {
`window.adf.apiReset();`
);
}
}