diff --git a/demo-shell/src/app/app.module.ts b/demo-shell/src/app/app.module.ts index 15f40e42fc..011d3ad9ad 100644 --- a/demo-shell/src/app/app.module.ts +++ b/demo-shell/src/app/app.module.ts @@ -145,7 +145,6 @@ import { UserInfoComponent } from './components/app-layout/user-info/user-info.c bootstrap: [AppComponent] }) export class AppModule { - constructor(automationService: CoreAutomationService) { - automationService.setup(); + constructor() { } } diff --git a/lib/core/src/lib/testing/automation.service.ts b/lib/core/src/lib/testing/automation.service.ts index dc8cf0dd0f..333943ebbf 100644 --- a/lib/core/src/lib/testing/automation.service.ts +++ b/lib/core/src/lib/testing/automation.service.ts @@ -36,9 +36,10 @@ export class CoreAutomationService { private userPreferencesService: UserPreferencesService, private storageService: StorageService, private auth: AuthenticationService - ) {} + ) { + // eslint-disable-next-line no-console + console.log('ADF Core AutomationService init'); - setup() { const adfProxy = window['adf'] || {}; adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field); diff --git a/lib/testing/src/lib/protractor/core/utils/local-storage.util.ts b/lib/testing/src/lib/protractor/core/utils/local-storage.util.ts index ea42556638..4e72225af6 100644 --- a/lib/testing/src/lib/protractor/core/utils/local-storage.util.ts +++ b/lib/testing/src/lib/protractor/core/utils/local-storage.util.ts @@ -17,6 +17,9 @@ import { browser } from 'protractor'; +/* +Open the CoreAutomationService in ADF core to see where we augment the window +*/ export class LocalStorageUtil { static async getConfigField(field: string): Promise {