MOBILE-3320 behat: Expose push notifications

main
Noel De Martin 2021-05-12 08:39:30 +02:00
parent 5cbff6021d
commit 153dbaf2c0
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,7 @@
// limitations under the License.
import { ApplicationRef } from '@angular/core';
import { CorePushNotifications, CorePushNotificationsProvider } from '@features/pushnotifications/services/pushnotifications';
import { CoreApp, CoreAppProvider } from '@services/app';
import { CoreCronDelegate, CoreCronDelegateService } from '@services/cron';
import { Application } from '@singletons';
@ -21,12 +22,14 @@ type AutomatedTestsWindow = Window & {
appRef?: ApplicationRef;
appProvider?: CoreAppProvider;
cronProvider?: CoreCronDelegateService;
pushNotifications?: CorePushNotificationsProvider;
};
function initializeAutomatedTestsWindow(window: AutomatedTestsWindow) {
window.appRef = Application.instance;
window.appProvider = CoreApp.instance;
window.cronProvider = CoreCronDelegate.instance;
window.pushNotifications = CorePushNotifications.instance;
}
export default function(): void {