Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@javascript @theme_classic
2
Feature: Page administration menu
3
  To navigate in classic theme I need to use the page administration menu
4
 
5
  Background:
6
    Given the following "courses" exist:
7
      | fullname | shortname | newsitems |
8
      | Course 1 | C1        | 5 |
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
    And the following "activities" exist:
18
      | activity | name        | intro                   | course | idnumber | option |
19
      | choice   | Choice name | Test choice description | C1     | choice1  | Option 1, Option 2, Option 3 |
20
 
21
  Scenario: Teacher can access activity administration menus
22
    And I log in as "teacher1"
23
    And I am on "Course 1" course homepage
24
    And I follow "Choice name"
25
    And I should see the page administration menu
26
    And "Settings" "link" should exist in current page administration
27
    And I navigate to "Settings" in current page administration
28
    And I should see "Edit settings"
29
    And I navigate to course participants
30
    And I should see the page administration menu
31
    And I am on the "Course 1" "Enrolment methods" page
32
    And I should see "Enrolment methods"
33
    And I log out
34
 
35
  Scenario: Student cannot access course and activity administration menus
36
    And I log in as "student1"
37
    And I am on "Course 1" course homepage
38
    And I should not see the page administration menu
39
    And I follow "Choice name"
40
    And I should not see the page administration menu
41
    And I log out
42
 
43
  Scenario: Administrator can access site administration menus and sub-menus
44
    And I log in as "admin"
45
    And I should see the page administration menu
46
    And I navigate to "Advanced features" in site administration
47
    And I should see "Enable comments"
48
    And I navigate to "Users > Accounts > Add a new user" in site administration
49
    And I should see "New password"
50
    And I log out