diff --git a/theme/classic/tests/behat/behat_theme_classic_behat_navigation.php b/theme/classic/tests/behat/behat_theme_classic_behat_navigation.php index 791274e6c7d..b6ff2683f99 100644 --- a/theme/classic/tests/behat/behat_theme_classic_behat_navigation.php +++ b/theme/classic/tests/behat/behat_theme_classic_behat_navigation.php @@ -29,6 +29,7 @@ require_once(__DIR__ . '/../../../../lib/tests/behat/behat_navigation.php'); use Behat\Mink\Exception\ExpectationException as ExpectationException; use Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException; +use Behat\Mink\Exception\DriverException as DriverException; /** * Step definitions and overrides to navigate through the navigation tree nodes in the Classic theme. @@ -428,4 +429,18 @@ class behat_theme_classic_behat_navigation extends behat_navigation { throw new ElementNotFoundException($this->getSession(), 'Link "' . join(' > ', $nodelist) . '" in the current page edit menu"'); } + + #[\Override] + public function menu_item_should_be_active(string $navigationmenuitem): void { + throw new DriverException( + 'The Classic theme does not implement navigation in a way that allows this step to be used.', + ); + } + + #[\Override] + public function menu_item_should_not_be_active(string $navigationmenuitem): void { + throw new DriverException( + 'The Classic theme does not implement the navigation in a way that allows this step to be used.', + ); + } } diff --git a/theme/classic/tests/behat/blacklist.json b/theme/classic/tests/behat/blacklist.json index 63f6dbf7589..314bcf9a9ea 100644 --- a/theme/classic/tests/behat/blacklist.json +++ b/theme/classic/tests/behat/blacklist.json @@ -11,7 +11,9 @@ "course/format/tests/behat/courseindex_keyboardnav.feature", "course/format/tests/behat/courseindex_completion.feature", "course/format/tests/behat/courseindex_language.feature", - "badges/tests/behat/badge_navigation.feature" + "badges/tests/behat/badge_navigation.feature", + "lib/tests/behat/menu_navigation_single_activity.feature", + "lib/tests/behat/menu_navigation_topics.feature" ], "tags": [ "addablocklink"