MDL-66335 behat: Avoid double processing the page type
commit18a738f88fb626d8905dc0d0f0cb23dbcf91d851
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:04:54 +0000 (15 00:04 +0200)
tree98f19a048bc8be1959a05d63d1fa24edb15e7a87
parent493a30cdc2686476edcb262d7f438535f090e3e1
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