Skip to content

Commit

Permalink
Merge branch 'MDL-68525-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and stronk7 committed Apr 28, 2020
2 parents 605107b + c3e04b2 commit e684b41
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/behat/classes/behat_config_util.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,14 +637,17 @@ protected function get_behat_profile($profile, $values) {
if (!isset($values['capabilities'])) {
$values['capabilities'] = [];
}
if (!isset($values['capabilities']['chrome'])) {
$values['capabilities']['chrome'] = [];
if (!isset($values['capabilities']['extra_capabilities'])) {
$values['capabilities']['extra_capabilities'] = [];
}
if (!isset($values['capabilities']['chrome']['switches'])) {
$values['capabilities']['chrome']['switches'] = [];
if (!isset($values['capabilities']['extra_capabilities']['chromeOptions'])) {
$values['capabilities']['extra_capabilities']['chromeOptions'] = [];
}
$values['capabilities']['chrome']['switches'][] = '--unlimited-storage';
$values['capabilities']['chrome']['switches'][] = '--disable-web-security';
if (!isset($values['capabilities']['extra_capabilities']['chromeOptions']['args'])) {
$values['capabilities']['extra_capabilities']['chromeOptions']['args'] = [];
}
$values['capabilities']['extra_capabilities']['chromeOptions']['args'][] = '--unlimited-storage';
$values['capabilities']['extra_capabilities']['chromeOptions']['args'][] = '--disable-web-security';

// If the mobile app is enabled, check its version and add appropriate tags.
if ($mobiletags = $this->get_mobile_version_tags()) {
Expand Down

0 comments on commit e684b41

Please sign in to comment.