Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_multiblock
2
Feature: Basic tests of multiple blocks
3
    In order to streamline course presentation
4
    As a teacher
5
    I need to be able to put multiple blocks in a single space
6
 
7
  Scenario: Adding a Course Toolkit with two sub-blocks
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email                |
10
      | teacher1 | Teacher   | One      | teacher@example.com  |
11
      | student1 | Student   | User     | 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 "Multiblock" block
22
    And I manage the contents of "Multiblock" block
23
    And I should see "This multiblock has no blocks inside it."
24
    And I set the field "Add a block" to "Logged in user"
25
    And I click on "input[value=Add]" "css_element"
26
    And I should see "Manage Multiblock contents"
27
    And I should see "Logged in user"
28
    And I set the field "Add a block" to "Recent activity"
29
    And I click on "input[value=Add]" "css_element"
30
    And I log out
31
    And I log in as "student1"
32
    And I am on "Course 1" course homepage
33
    Then I should see "Multiblock"
34
    And I should see "Logged in user"
35
    And I should see "Recent activity"