| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/tuprblearn/theme/boost/tests/behat/ |
Upload File : |
@javascript @theme_boost
Feature: Context settings menu
To navigate in boost theme I need to use the context settings menu
Background:
Given the following "courses" exist:
| fullname | shortname |
| Course 1 | C1 |
And the following "users" exist:
| username | firstname | lastname | email |
| teacher1 | Teacher | 1 | [email protected] |
| student1 | Student | 1 | [email protected] |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
| student1 | C1 | student |
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=button]" "css_element"
And I choose "Edit settings" in the open action menu
And I should see "Edit course settings"
And I log out
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=button]" "css_element" should not exist
And I log out