Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@javascript @theme_boost
2
Feature: Context settings menu
3
  To navigate in boost theme I need to use the context settings menu
4
 
5
  Background:
6
    Given the following "courses" exist:
7
      | fullname | shortname |
8
      | Course 1 | C1        |
9
    And the following "users" exist:
10
      | username | firstname | lastname | email |
11
      | teacher1 | Teacher | 1 | teacher1@example.com |
12
      | student1 | Student | 1 | student1@example.com |
13
    And the following "course enrolments" exist:
14
      | user | course | role |
15
      | teacher1 | C1 | editingteacher |
16
      | student1 | C1 | student |
17
 
18
  Scenario: Teacher can use the context settings menu
19
    And I log in as "teacher1"
20
    And I am on "Course 1" course homepage
21
    And I navigate to "Settings" in current page administration
22
    And I should see "Edit course settings"
23
    And I log out
24
 
25
  Scenario: Student cannot use the context settings menu
26
    And I log in as "student1"
27
    And I am on "Course 1" course homepage
28
    And ".context-header-settings-menu [role=button]" "css_element" should not exist
29
    And I log out