Merge branch 'MDL-67727-master' of git://github.com/crazyserver/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2020-02-20 16:12:23 +01:00
commit a1a5f87093
2 changed files with 10 additions and 3 deletions

View File

@ -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;
}

View File

@ -385,16 +385,18 @@ class behat_hooks extends behat_base {
// Reset the scenariorunning variable to ensure that Step 0 occurs.
$this->scenariorunning = false;
// Run all test with medium (1024x768) screen size, to avoid responsive problems.
$this->resize_window('medium');
// Set up the tags for current scenario.
self::fetch_tags_for_scenario($scope);
// If scenario requires the Moodle app to be running, set this up.
if ($this->has_tag('app')) {
$this->execute('behat_app::start_scenario');
return;
}
// Run all test with medium (1024x768) screen size, to avoid responsive problems.
$this->resize_window('medium');
}
/**