Commit c7120f78 authored by Andrew Nicols's avatar Andrew Nicols
Browse files

MDL-63755 theme_boost: Behat selector fix

parent daf0b4f0
......@@ -18,7 +18,7 @@ Feature: Context settings menu
Scenario: Teacher can use the context settings menu
And I log in as "teacher1"
And I am on "Course 1" course homepage
And I click on ".context-header-settings-menu [role=menuitem]" "css_element"
And I click on ".context-header-settings-menu [role=button]" "css_element"
And I choose "Edit settings" in the open action menu
And I should see "Edit course settings"
And I log out
......@@ -26,5 +26,5 @@ Feature: Context settings menu
Scenario: Student cannot use the context settings menu
And I log in as "student1"
And I am on "Course 1" course homepage
And ".context-header-settings-menu [role=menuitem]" "css_element" should not exist
And ".context-header-settings-menu [role=button]" "css_element" should not exist
And I log out
......@@ -21,13 +21,13 @@ Feature: Region main settings menu
Scenario: Teacher can use the region main settings menu
And I log in as "teacher1"
And I am on "Course 1" course homepage
And "#region-main-settings-menu [role=menuitem]" "css_element" should not exist
And "#region-main-settings-menu [role=button]" "css_element" should not exist
And I follow "Choice name"
And I click on "#region-main-settings-menu [role=menuitem]" "css_element"
And I click on "#region-main-settings-menu [role=button]" "css_element"
And I choose "Edit settings" in the open action menu
And I should see "Updating: Choice"
And I navigate to course participants
And I click on "#region-main-settings-menu [role=menuitem]" "css_element"
And I click on "#region-main-settings-menu [role=button]" "css_element"
And I choose "Enrolment methods" in the open action menu
And I should see "Enrolment methods"
And I log out
......@@ -35,7 +35,7 @@ Feature: Region main settings menu
Scenario: Student cannot use all options in the region main settings menu
And I log in as "student1"
And I am on "Course 1" course homepage
And "#region-main-settings-menu [role=menuitem]" "css_element" should not exist
And "#region-main-settings-menu [role=button]" "css_element" should not exist
And I follow "Choice name"
And "#region-main-settings-menu [role=menuitem]" "css_element" should not exist
And "#region-main-settings-menu [role=button]" "css_element" should not exist
And I log out
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment