MOBILE-4061 behat: Handle custom url on Angular zone
This commit is contained in:
		
							parent
							
								
									82033e05d0
								
							
						
					
					
						commit
						849d7849bf
					
				@ -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 NgZone.run(async () => {
 | 
			
		||||
                await CoreCustomURLSchemes.handleCustomURL(url);
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            return 'OK';
 | 
			
		||||
        } catch (error) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user