Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_myprofile
2
Feature: The logged in user block allows users to view their profile information in an activity
3
  In order to enable the logged in user block in an activity
4
  As a teacher
5
  I can add the logged in user block to an activity and view my information
6
 
7
  Scenario: View the logged in user block by a user in an activity
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email | idnumber |
10
      | teacher1 | Teacher | One | teacher1@example.com | T1 |
11
    And the following "courses" exist:
12
      | fullname | shortname | category |
13
      | Course 1 | C1 | 0 |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
    And the following "activities" exist:
18
      | activity | course | idnumber | name           | intro                 |
19
      | page     | C1     | page1    | Test page name | Test page description |
20
    And the following "blocks" exist:
21
      | blockname | contextlevel    | reference | pagetypepattern | defaultregion |
22
      | myprofile | Activity module | page1     | mod-page-*      | side-pre      |
23
    When I am on the "Test page name" "page activity" page logged in as teacher1
24
    Then I should see "Teacher One" in the "Logged in user" "block"