Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_course
2
Feature: Summary text format should be preserved on edit and set by preferred editor format on creation
3
  In order to edit the course summary
4
  As a course creator
5
  The format specified for the summary must be honored
6
 
7
  Scenario: Preferred editor format should be used for summary field on course creation
8
    Given the following "user preferences" exist:
9
      | user  | preference  | value     |
10
      | admin | htmleditor  | textarea  |
11
    And I log in as "admin"
12
    And I go to the courses management page
13
    When I click on "Create new course" "link"
14
    Then the field "Course summary format" matches value "0"
15
 
16
  Scenario: Summary format must be preserved on course edit
17
    Given the following "user preferences" exist:
18
      | user  | preference  | value     |
19
      | admin | htmleditor  | textarea  |
20
    And I log in as "admin"
21
    And I go to the courses management page
22
    And I click on "Create new course" "link"
23
    And I set the following fields to these values:
24
      | Course full name   | C1                          |
25
      | Course short name  | C1                          |
26
      | Course summary     | Course description          |
27
    # 4 is assumed to be Markdown format.
28
    And I set the field with xpath "//select[@name='summary_editor[format]']" to "4"
29
    And I press "Save and display"
30
    When I click on "Settings" "link"
31
    Then the field "Course summary format" matches value "4"