MOBILE-4069 behat: Fix bug when checking URL in browser tab
This commit is contained in:
		
							parent
							
								
									6cc731eeea
								
							
						
					
					
						commit
						2c80555c1b
					
				| @ -681,7 +681,7 @@ class behat_app extends behat_app_helper { | ||||
|             if (!is_null($urlpattern)) { | ||||
|                 $this->getSession()->switchToWindow($windowNames[1]); | ||||
|                 $windowurl = $this->getSession()->getCurrentUrl(); | ||||
|                 $windowhaspattern = preg_match("/$urlpattern/", $windowurl); | ||||
|                 $windowhaspattern = !!preg_match("/$urlpattern/", $windowurl); | ||||
|                 $this->getSession()->switchToWindow($windowNames[0]); | ||||
| 
 | ||||
|                 if ($not === $windowhaspattern) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user