Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_html
2
Feature: Text blocks in a course
3
  In order to have one or multiple Text blocks in a course
4
  As a teacher
5
  I need to be able to create and change such blocks
6
 
7
  Scenario: Adding Text block in a course
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email            |
10
      | teacher1 | Terry1    | Teacher1 | teacher@example.com  |
11
      | student1 | Sam1      | Student1 | student1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname |
14
      | Course 1 | C1        |
15
    And the following "course enrolments" exist:
16
      | user     | course | role           |
17
      | teacher1 | C1     | editingteacher |
18
      | student1 | C1     | student        |
19
    When I log in as "teacher1"
20
    And I am on "Course 1" course homepage with editing mode on
21
    And I add the "Text" block
22
    And I configure the "(new text block)" block
23
    And I set the field "Content" to "First block content"
24
    And I set the field "Text block title" to "First block header"
25
    And I press "Save changes"
26
    And I add the "Text" block
27
    And I configure the "(new text block)" block
28
    And I set the field "Content" to "Second block content"
29
    And I set the field "Text block title" to "Second block header"
30
    And I press "Save changes"
31
    And I log out
32
    And I log in as "student1"
33
    And I am on "Course 1" course homepage
34
    And I should see "First block content" in the "First block header" "block"
35
    And I should see "Second block content" in the "Second block header" "block"