1 <?php 2 // This file is part of Moodle - http://moodle.org/ 3 // 4 // Moodle is free software: you can redistribute it and/or modify 5 // it under the terms of the GNU General Public License as published by 6 // the Free Software Foundation, either version 3 of the License, or 7 // (at your option) any later version. 8 // 9 // Moodle is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 // You should have received a copy of the GNU General Public License 15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>. 16 17 declare(strict_types=1); 18 19 // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 20 require_once (__DIR__ . '/../../../../lib/behat/behat_base.php'); 21 22 /** 23 * Behat step definitions for Course format 24 * 25 * @package core_courseformat 26 * @copyright 2023 Mikel MartÃn <mikel@moodle.com> 27 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 28 */ 29 class behat_courseformat extends behat_base { 30 31 /** 32 * Return the list of partial named selectors 33 * 34 * @return behat_component_named_selector[] 35 */ 36 public static function get_partial_named_selectors(): array { 37 return [ 38 new behat_component_named_selector('Activity completion', [ 39 ".//*[@data-activityname=%locator%]//*[@data-region='completionrequirements']", 40 ]), 41 new behat_component_named_selector('Activity groupmode', [ 42 ".//*[@data-activityname=%locator%]//*[@data-region='groupmode']", 43 ]), 44 new behat_component_named_selector('Activity visibility', [ 45 ".//*[@data-activityname=%locator%]//*[@data-region='visibility']", 46 ]), 47 ]; 48 } 49 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body