improve e2e configuration (#5752)

* improve e2e configuration

* fix login

* fix login

* use storage

* fix

* default oauth

* improve share file test and add baseShareUrl init in e2e

* some click script better usage
This commit is contained in:
Eugenio Romano
2020-06-06 20:12:54 +01:00
committed by GitHub
parent 6f2ec24851
commit 1c030d7b48
28 changed files with 184 additions and 119 deletions

View File

@@ -38,6 +38,10 @@ export class CoreAutomationService {
setup() {
const adfProxy = window['adf'] || {};
adfProxy.getConfigField = (field: string): any => {
return this.appConfigService.get(field);
};
adfProxy.setConfigField = (field: string, value: string) => {
this.appConfigService.config[field] = JSON.parse(value);
};
@@ -50,6 +54,10 @@ export class CoreAutomationService {
this.storageService.removeItem(key);
};
adfProxy.getStorageItem = (key: string): string => {
return this.storageService.getItem(key);
};
adfProxy.setUserPreference = (key: string, data: any) => {
this.userPreferencesService.set(key, data);
};