MOBILE-4061 behat: Adapt files to new behat plugin
parent
dd9669a955
commit
5b5d654b32
|
@ -80,7 +80,8 @@ async function main() {
|
|||
}
|
||||
|
||||
const newPath = featurePath.substring(0, featurePath.length - ('/tests/behat'.length));
|
||||
const prefix = relative(behatTempFeaturesPath, newPath).replace('/','-') || 'core';
|
||||
const searchRegExp = new RegExp('/', 'g');
|
||||
const prefix = relative(behatTempFeaturesPath, newPath).replace(searchRegExp,'-') || 'core';
|
||||
const featureFilename = prefix + '-' + basename(featureFile);
|
||||
renameSync(featureFile, behatFeaturesPath + '/' + featureFilename);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace local_moodlemobileapp\output;
|
||||
namespace local_moodleappbehat\output;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$addons = [
|
||||
'local_moodlemobileapp' => [
|
||||
'local_moodleappbehat' => [
|
||||
'handlers' => [
|
||||
'index' => [
|
||||
'delegate' => 'CoreMainMenuDelegate',
|
||||
|
@ -28,7 +28,7 @@ $addons = [
|
|||
],
|
||||
],
|
||||
'lang' => [
|
||||
['pluginname', 'local_moodlemobileapp'],
|
||||
['pluginname', 'local_moodleappbehat'],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
|
@ -601,7 +601,7 @@
|
|||
case 'more menu':
|
||||
foundButton = findElementsBasedOnText({
|
||||
text: 'More',
|
||||
near: { text: 'Messages' },
|
||||
selector: 'ion-tab-button',
|
||||
})[0];
|
||||
break;
|
||||
case 'user menu' :
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Mobile/desktop app steps definitions.
|
||||
* Moodle App steps definitions.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
|
@ -49,7 +49,7 @@ interface behat_app_listener {
|
|||
}
|
||||
|
||||
/**
|
||||
* Mobile/desktop app steps definitions.
|
||||
* Moodle App steps definitions.
|
||||
*
|
||||
* @package core
|
||||
* @category test
|
||||
|
@ -518,7 +518,7 @@ class behat_app extends behat_base {
|
|||
|
||||
$this->execute_script("
|
||||
var script = document.createElement('script');
|
||||
script.src = '{$CFG->behat_wwwroot}/local/moodlemobileapp/tests/behat/app_behat_runtime.js';
|
||||
script.src = '{$CFG->behat_wwwroot}/local/moodleappbehat/tests/behat/app_behat_runtime.js';
|
||||
document.body.append(script);
|
||||
");
|
||||
|
||||
|
|
|
@ -18,6 +18,8 @@ use Behat\Mink\Exception\DriverException;
|
|||
use Facebook\WebDriver\Exception\InvalidArgumentException;
|
||||
use Moodle\BehatExtension\Driver\WebDriver;
|
||||
|
||||
require_once(__DIR__ . '/../behat_app.php');
|
||||
|
||||
/**
|
||||
* Performance measures for one particular metric.
|
||||
*/
|
||||
|
@ -334,7 +336,7 @@ class performance_measure implements behat_app_listener {
|
|||
" ],",
|
||||
" ],",
|
||||
" ],",
|
||||
");",
|
||||
"];",
|
||||
"",
|
||||
])
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue