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: Accordion layout
3
    In order to improve existing content
4
    As a teacher
5
    I need to be able to merge existing blocks into a newly made multiblock
6
 
7
  Scenario: Creating a block and then moving it into a multiblock
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 "Logged in user" block
22
    And I add the "Multiblock" block
23
    And I should see "Teacher One"
24
    And I should not see "Teacher One" in the ".block_multiblock" "css_element"
25
    And I manage the contents of "Multiblock" block
26
    And I expand all fieldsets
27
    And I set the field "Move existing block" to "Logged in user"
28
    And I click on "input[value=Move]" "css_element"
29
    And I log out
30
    And I log in as "student1"
31
    And I am on "Course 1" course homepage
32
    Then I should see "Multiblock"
33
    And I should see "Student User" in the ".block_multiblock" "css_element"