. declare(strict_types=1); // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. require_once(__DIR__ . '/../../../../lib/behat/behat_base.php'); /** * Behat step definitions for Course format * * @package core_courseformat * @copyright 2023 Mikel Martín * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_courseformat extends behat_base { /** * Return the list of partial named selectors * * @return behat_component_named_selector[] */ public static function get_partial_named_selectors(): array { return [ new behat_component_named_selector('Activity completion', [ ".//*[@data-activityname=%locator%]//*[@data-region='completionrequirements']", ]), new behat_component_named_selector('Activity groupmode', [ ".//*[@data-activityname=%locator%]//*[@data-region='groupmode']", ]), new behat_component_named_selector('Activity visibility', [ ".//*[@data-activityname=%locator%]//*[@data-region='visibility']", ]), ]; } }