MOBILE-3947 behat: Don't search elements in hidden containers
This commit is contained in:
		
							parent
							
								
									abd1a32f63
								
							
						
					
					
						commit
						69fca2f269
					
				| @ -376,6 +376,11 @@ export class TestingBehatDomUtilsService { | ||||
| 
 | ||||
|         containers = containers | ||||
|             .filter(container => { | ||||
|                 if (!this.isElementVisible(container)) { | ||||
|                     // Ignore containers not visible.
 | ||||
|                     return false; | ||||
|                 } | ||||
| 
 | ||||
|                 if (container.tagName === 'ION-ALERT') { | ||||
|                     // For some reason, in Behat sometimes alerts aren't removed from DOM, the close animation doesn't finish.
 | ||||
|                     // Filter alerts with pointer-events none since that style is set before the close animation starts.
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user