MDL-72032 core: Add roles to items

- Part of: MDL-69588
This commit is contained in:
Peter Dias
2021-08-23 17:47:22 +08:00
committed by Mathew May
parent 9f40dcae9a
commit dfefc86393
12 changed files with 63 additions and 31 deletions
@@ -31,6 +31,19 @@ use Behat\Mink\Exception\ExpectationException as ExpectationException;
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class behat_theme_boost_behat_navigation extends behat_navigation {
/**
* Checks whether a node is active in the navbar.
*
* @override i should see :name is active in navigation
*
* @throws ElementNotFoundException
* @param string $element The name of the nav elemnent to look for.
* @return void
*/
public function i_should_see_is_active_in_navigation($element) {
$this->execute("behat_general::assert_element_contains_text",
[$element, '.navbar .nav-link.active', 'css_element']);
}
/**
* Checks whether the language selector menu is present in the navbar.