MOBILE-3320 e2e: Expose urlSchemes

main
Noel De Martin 2021-06-10 14:55:32 +02:00
parent 4b2b1c1e3e
commit 4c305e954e
1 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ import { ApplicationRef } from '@angular/core';
import { CorePushNotifications, CorePushNotificationsProvider } from '@features/pushnotifications/services/pushnotifications'; import { CorePushNotifications, CorePushNotificationsProvider } from '@features/pushnotifications/services/pushnotifications';
import { CoreApp, CoreAppProvider } from '@services/app'; import { CoreApp, CoreAppProvider } from '@services/app';
import { CoreCronDelegate, CoreCronDelegateService } from '@services/cron'; import { CoreCronDelegate, CoreCronDelegateService } from '@services/cron';
import { CoreCustomURLSchemes, CoreCustomURLSchemesProvider } from '@services/urlschemes';
import { Application } from '@singletons'; import { Application } from '@singletons';
type AutomatedTestsWindow = Window & { type AutomatedTestsWindow = Window & {
@ -23,6 +24,7 @@ type AutomatedTestsWindow = Window & {
appProvider?: CoreAppProvider; appProvider?: CoreAppProvider;
cronProvider?: CoreCronDelegateService; cronProvider?: CoreCronDelegateService;
pushNotifications?: CorePushNotificationsProvider; pushNotifications?: CorePushNotificationsProvider;
urlSchemes?: CoreCustomURLSchemesProvider;
}; };
function initializeAutomatedTestsWindow(window: AutomatedTestsWindow) { function initializeAutomatedTestsWindow(window: AutomatedTestsWindow) {
@ -30,6 +32,7 @@ function initializeAutomatedTestsWindow(window: AutomatedTestsWindow) {
window.appProvider = CoreApp.instance; window.appProvider = CoreApp.instance;
window.cronProvider = CoreCronDelegate.instance; window.cronProvider = CoreCronDelegate.instance;
window.pushNotifications = CorePushNotifications.instance; window.pushNotifications = CorePushNotifications.instance;
window.urlSchemes = CoreCustomURLSchemes.instance;
} }
export default function(): void { export default function(): void {