@@ -442,9 +442,13 @@ Feature: Configuring the theme_boost_union plugin on the "Smart menus" page, app
442
442
And I am on site homepage
443
443
Then the "class" attribute of ".primary-navigation [data-key='home'] a" "css_element" should contain "active"
444
444
And the "class" attribute of ".primary-navigation [data-orgposition='4'] a" "css_element" should not contain "active"
445
+ And "//a[@aria-current = 'true']" "xpath" should exist in the ".primary-navigation [data-key='home']" "css_element"
446
+ And "//a[@aria-current = 'true']" "xpath" should not exist in the ".primary-navigation [data-orgposition='4']" "css_element"
445
447
And I click on "Privacy" "link" in the ".primary-navigation" "css_element"
446
448
Then the "class" attribute of ".primary-navigation [data-key='home'] a" "css_element" should not contain "active"
447
449
And the "class" attribute of ".primary-navigation [data-orgposition='4'] a" "css_element" should contain "active"
450
+ And "//a[@aria-current = 'true']" "xpath" should exist in the ".primary-navigation [data-orgposition='4']" "css_element"
451
+ And "//a[@aria-current = 'true']" "xpath" should not exist in the ".primary-navigation [data-key='home']" "css_element"
448
452
And I navigate to smart menus
449
453
And I click on "Create menu" "button"
450
454
And I set the following fields to these values:
@@ -462,7 +466,10 @@ Feature: Configuring the theme_boost_union plugin on the "Smart menus" page, app
462
466
| Menu item URL | https ://moodle .org |
463
467
And I follow "Dashboard"
464
468
Then the "class" attribute of ".primary-navigation [data-key='myhome'] a" "css_element" should contain "active"
469
+ And "//a[@aria-current = 'true']" "xpath" should exist in the ".primary-navigation [data-key='myhome']" "css_element"
465
470
And I click on "Useful Resources" "link" in the ".primary-navigation" "css_element"
466
471
And I click on "Contact" "link" in the ".primary-navigation" "css_element"
467
472
Then the "class" attribute of ".primary-navigation [data-key='myhome'] a" "css_element" should not contain "active"
468
473
And the "class" attribute of ".primary-navigation [data-orgposition='5'] a" "css_element" should contain "active"
474
+ And "//a[@aria-current = 'true']" "xpath" should exist in the ".primary-navigation [data-orgposition='5']" "css_element"
475
+
0 commit comments