MDL-67727 behat: Reset ionic app properly
This commit is contained in:
		
							parent
							
								
									a14f5dea21
								
							
						
					
					
						commit
						f56fd4a943
					
				| @ -85,6 +85,10 @@ class behat_app extends behat_base { | ||||
|         $this->getSession()->restart(); | ||||
|         $this->resize_window('360x720', true); | ||||
| 
 | ||||
|         if (empty($this->ionicurl)) { | ||||
|             $this->ionicurl = $this->start_or_reuse_ionic(); | ||||
|         } | ||||
| 
 | ||||
|         // Go to page and prepare browser for app.
 | ||||
|         $this->prepare_browser($this->ionicurl); | ||||
|     } | ||||
| @ -241,6 +245,7 @@ class behat_app extends behat_base { | ||||
|             // the process.
 | ||||
|             self::$ionicrunning = (object)['url' => $url, 'process' => $process, 'pipes' => $pipes, | ||||
|                     'pid' => $pid]; | ||||
|             $url = self::$ionicrunning->url; | ||||
|         } | ||||
|         return $url; | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user