forked from moodle-an-hochschulen/moodle-theme_boost_union
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
53 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,12 @@ | |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Standard behat step data providers for theme_boost_union | ||
* Theme Boost Union - Standard behat step data providers. | ||
* | ||
* @package theme_boost_union | ||
* @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net} | ||
* @author Mark Johnson <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @package theme_boost_union | ||
* @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net} | ||
* @author Mark Johnson <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class behat_theme_boost_union extends behat_base { | ||
/** | ||
|
@@ -203,7 +203,7 @@ protected function resolve_page_instance_url(string $type, string $identifier): | |
); | ||
|
||
default: | ||
throw new Exception('Unrecognised quiz page type "' . $type . '."'); | ||
throw new Exception('Unrecognised theme_boost_union page type "' . $type . '."'); | ||
} | ||
} | ||
|
||
|
@@ -232,7 +232,7 @@ public static function get_exact_named_selectors(): array { | |
), | ||
new behat_component_named_selector( | ||
'Smart menu item', | ||
[".//a[contains(@class, 'boost-union-smartitem')][contains(text(), %locator%)]"], | ||
[".//a[contains(@class, 'boost-union-smartmenuitem')][contains(text(), %locator%)]"], | ||
), | ||
new behat_component_named_selector( | ||
'Main menu smart menu', | ||
|
@@ -245,7 +245,7 @@ public static function get_exact_named_selectors(): array { | |
'Main menu smart menu item', | ||
[ | ||
".//div[contains(@class, 'primary-navigation')]" . | ||
"//a[contains(@class, 'boost-union-smartitem')][contains(text(), %locator%)]", | ||
"//a[contains(@class, 'boost-union-smartmenuitem')][contains(text(), %locator%)]", | ||
], | ||
), | ||
new behat_component_named_selector( | ||
|
@@ -259,7 +259,7 @@ public static function get_exact_named_selectors(): array { | |
'Menu bar smart menu item', | ||
[ | ||
".//nav[contains(@class, 'boost-union-menubar')]" . | ||
"//a[contains(@class, 'boost-union-smartitem')][contains(text(), %locator%)]", | ||
"//a[contains(@class, 'boost-union-smartmenuitem')][contains(text(), %locator%)]", | ||
], | ||
), | ||
new behat_component_named_selector( | ||
|
@@ -272,7 +272,7 @@ public static function get_exact_named_selectors(): array { | |
'User menu smart menu item', | ||
[ | ||
".//div[@id = 'usermenu-carousel']//div[contains(@class, 'carousel-item')]" . | ||
"//a[contains(@class, 'boost-union-smartitem')][contains(text(), %locator%)]", | ||
"//a[contains(@class, 'boost-union-smartmenuitem')][contains(text(), %locator%)]", | ||
], | ||
), | ||
new behat_component_named_selector( | ||
|
@@ -285,7 +285,7 @@ public static function get_exact_named_selectors(): array { | |
'Bottom bar smart menu item', | ||
[ | ||
".//nav[contains(@class, 'boost-union-bottom-menu')]" . | ||
"//a[contains(@class, 'boost-union-smartitem')][contains(text(), %locator%)]", | ||
"//a[contains(@class, 'boost-union-smartmenuitem')][contains(text(), %locator%)]", | ||
], | ||
), | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ | |
use theme_boost_union\smartmenu_item; | ||
|
||
/** | ||
* Behat generator for Boost Union | ||
* Theme Boost Union - Behat generator. | ||
* | ||
* @package theme_boost_union | ||
* @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net} | ||
* @author Mark Johnson <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @package theme_boost_union | ||
* @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net} | ||
* @author Mark Johnson <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class behat_theme_boost_union_generator extends behat_generator_base { | ||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,12 @@ | |
use theme_boost_union\smartmenu_item; | ||
|
||
/** | ||
* Boost Union test data generator | ||
* Theme Boost Union - Test data generator. | ||
* | ||
* @package theme_boost_union | ||
* @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net} | ||
* @author Mark Johnson <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
* @package theme_boost_union | ||
* @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net} | ||
* @author Mark Johnson <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
class theme_boost_union_generator extends component_generator_base { | ||
/** | ||
|