MOBILE-4061 behat: Handle custom url on Angular zone

main
Pau Ferrer Ocaña 2022-06-02 18:39:35 +02:00
parent 82033e05d0
commit 849d7849bf
1 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import { CoreCustomURLSchemes } from '@services/urlschemes';
import { CoreLoginHelperProvider } from '@features/login/services/login-helper'; import { CoreLoginHelperProvider } from '@features/login/services/login-helper';
import { CoreConfig } from '@services/config'; import { CoreConfig } from '@services/config';
import { EnvironmentConfig } from '@/types/config'; import { EnvironmentConfig } from '@/types/config';
import { NgZone } from '@singletons';
/** /**
* Behat runtime servive with public API. * Behat runtime servive with public API.
@ -72,7 +73,9 @@ export class TestsBehatRuntime {
const blockKey = TestsBehatBlocking.block(); const blockKey = TestsBehatBlocking.block();
try { try {
await NgZone.run(async () => {
await CoreCustomURLSchemes.handleCustomURL(url); await CoreCustomURLSchemes.handleCustomURL(url);
});
return 'OK'; return 'OK';
} catch (error) { } catch (error) {