From f56fd4a943d638dd1f00a14742b2ffee460ab896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 17 Jan 2020 15:30:23 +0100 Subject: [PATCH] MDL-67727 behat: Reset ionic app properly --- behat_app.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/behat_app.php b/behat_app.php index aebbed109..4996b2797 100644 --- a/behat_app.php +++ b/behat_app.php @@ -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; }