MOBILE-4061 behat: Handle custom url on Angular zone
parent
82033e05d0
commit
849d7849bf
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue