Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]
Navigation step definition overrides for the Classic theme.
Copyright: | 2019 Michael Hawkins |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 229 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file lib/tests/behat/behat_navigation.php |
behat_theme_classic_behat_navigation:: (8 methods):
i_navigate_to_in_current_page_administration()
i_navigate_to_in_site_administration()
get_top_navigation_node()
should_exist_in_current_page_administration()
should_not_exist_in_current_page_administration()
page_administration_exists()
page_administration_does_not_exist()
find_page_administration_menu()
Class: behat_theme_classic_behat_navigation - X-Ref
Step definitions and overrides to navigate through the navigation tree nodes in the Classic theme.i_navigate_to_in_current_page_administration($nodetext) X-Ref |
Navigate to an item in a current page administration menu. param: string $nodetext The navigation node/path to follow, eg "Course administration > Edit settings" return: void |
i_navigate_to_in_site_administration($nodetext) X-Ref |
Navigate to an item within the site administration menu. param: string $nodetext The navigation node/path to follow, excluding "Site administration" itself, eg "Grades > Scales" return: void |
get_top_navigation_node($nodetext) X-Ref |
Helper function to get top navigation node in the tree. param: string $nodetext name of top navigation node in tree. return: NodeElement |
should_exist_in_current_page_administration($element, $selectortype) X-Ref |
Check that current page administration contains an element. param: string $element The locator of the specified selector. param: string $selectortype The selector type (link or text) return: void |
should_not_exist_in_current_page_administration($element, $selectortype) X-Ref |
Check that current page administration does not contains an element. param: string $element The locator of the specified selector. param: string $selectortype The selector type (link or text) return: void |
page_administration_exists() X-Ref |
Check that the page administration menu exists on the page. This confirms the existence of the menu, which authorised users should have access to. return: void |
page_administration_does_not_exist() X-Ref |
Check that the page administration menu does not exist on the page. This confirms the absence of the menu, which unauthorised users should not have access to. return: void |
find_page_administration_menu($mustexist = false) X-Ref |
Locate the administration menu on the page (but not in the header) and return its xpath. param: bool $mustexist If true, throws an exception if menu is not found return: null|string |