From 849d7849bf533f723c5ecd6f0bc9a8a6994c8ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 2 Jun 2022 18:39:35 +0200 Subject: [PATCH] MOBILE-4061 behat: Handle custom url on Angular zone --- src/testing/services/behat-runtime.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/testing/services/behat-runtime.ts b/src/testing/services/behat-runtime.ts index 8e7e94ae5..f14a7227f 100644 --- a/src/testing/services/behat-runtime.ts +++ b/src/testing/services/behat-runtime.ts @@ -18,6 +18,7 @@ import { CoreCustomURLSchemes } from '@services/urlschemes'; import { CoreLoginHelperProvider } from '@features/login/services/login-helper'; import { CoreConfig } from '@services/config'; import { EnvironmentConfig } from '@/types/config'; +import { NgZone } from '@singletons'; /** * Behat runtime servive with public API. @@ -72,7 +73,9 @@ export class TestsBehatRuntime { const blockKey = TestsBehatBlocking.block(); try { - await CoreCustomURLSchemes.handleCustomURL(url); + await NgZone.run(async () => { + await CoreCustomURLSchemes.handleCustomURL(url); + }); return 'OK'; } catch (error) {