mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 23:42:11 +02:00
Merge branch 'MDL-67727-master' of git://github.com/crazyserver/moodle
This commit is contained in:
commit
a1a5f87093
@ -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;
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user