MDL-66335 behat: Avoid double processing the page type
commit4705bff0e177c094002419cfd71382a020ca369b
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Oct 2019 21:52:28 +0000 (14 23:52 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 14 Oct 2019 22:02:41 +0000 (15 00:02 +0200)
treeb82c9c69626bce9e33b90727063155a3de99956b
parent19bd02eabd76a17c92bf078f0fcea2b98d46eb97
MDL-66335 behat: Avoid double processing the page type

resolve_page_instance_helper() already processes the type, returning
the correct context that should be processing the navigation URL.

With that extra call to parse_page_name() the 2nd call always returns
"core", ultimately leading to tons of behat failures because "core" is
not aware of those (plugin, quiz for now) pages typology.
lib/tests/behat/behat_navigation.php