MDL-69421 behat: Revert app behat navigation to call session visit
authorNoel De Martin <noel@moodle.com>
Thu, 6 Aug 2020 10:08:43 +0000 (12:08 +0200)
committerNoel De Martin <noel@moodle.com>
Thu, 6 Aug 2020 10:08:43 +0000 (12:08 +0200)
lib/tests/behat/behat_app.php

index ce9f392..e474ffc 100644 (file)
@@ -283,7 +283,7 @@ class behat_app extends behat_base {
         global $CFG;
 
         // Visit the Ionic URL and wait for it to load.
-        $this->execute('behat_general::i_visit', [$url]);
+        $this->getSession()->visit($url);
         $this->spin(
                 function($context, $args) {
                     $title = $context->getSession()->getPage()->find('xpath', '//title');