Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_block
2
Feature: Block region moving
3
  In order to configure blocks appearance
4
  As a teacher
5
  I need to modify block region for the page
6
 
7
  Background:
8
    Given the following "courses" exist:
9
      | fullname | shortname | category |
10
      | Course 1 | C1 | 0 |
11
    And the following "users" exist:
12
      | username | firstname | lastname | email |
13
      | teacher1 | teacher | 1 | teacher1@example.com |
14
    And the following "course enrolments" exist:
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
17
    And the following "activities" exist:
18
      | activity | course | name             |
19
      | assign   | C1     | Test assign name |
20
      | book     | C1     | Test book name   |
21
    And the following "mod_book > chapter" exists:
22
      | book    | Test book name         |
23
      | title   | Book title             |
24
      | content | Book content test test |
25
    And the following "blocks" exist:
26
      | blockname | contextlevel | reference | pagetypepattern | defaultregion |
27
      | comments  | Course       | C1        | course-view-*   | side-pre      |
28
    And I log in as "teacher1"
29
    And I am on "Course 1" course homepage with editing mode on
30
    And I configure the "Comments" block
31
    And I set the following fields to these values:
32
      | Display on page types | Any page |
33
    And I press "Save changes"
34
 
35
  Scenario: Block settings can be modified so that a block can be moved
36
    When I follow "Test book name"
37
    And I configure the "Comments" block
38
    And I set the following fields to these values:
39
      | Region  | Right |
40
    And I press "Save changes"
41
    And I should see "Comments" in the "//*[@id='region-post' or @id='block-region-side-post']" "xpath_element"