Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 75... Línea 75...
75
 
75
 
76
  @javascript
76
  @javascript
77
  Scenario: Create a group event
77
  Scenario: Create a group event
78
    Given I log in as "teacher1"
78
    Given I log in as "teacher1"
79
    And I follow "Full calendar"
79
    And I follow "Full calendar"
80
    And I set the field "course" to "C1"
80
    And I set the field "course" to "Course 1"
81
    And I create a calendar event:
81
    And I create a calendar event:
82
      | Type of event | group |
82
      | Type of event | group |
83
      | Group         | Group 1 |
83
      | Group         | Group 1 |
84
      | Event title | Really awesome event! |
84
      | Event title | Really awesome event! |
Línea 215... Línea 215...
215
    Given I log in as "teacher1"
215
    Given I log in as "teacher1"
216
    When I am viewing site calendar
216
    When I am viewing site calendar
217
    And I click on "New event" "button"
217
    And I click on "New event" "button"
218
    Then the field "Type of event" matches value "User"
218
    Then the field "Type of event" matches value "User"
219
    And I click on "Close" "button" in the "New event" "dialogue"
219
    And I click on "Close" "button" in the "New event" "dialogue"
220
    And I set the field "course" to "C1"
220
    And I set the field "course" to "Course 1"
221
    When I click on "New event" "button"
221
    When I click on "New event" "button"
222
    Then the field "Type of event" matches value "Course"
222
    Then the field "Type of event" matches value "Course"
Línea 223... Línea 223...
223
 
223
 
224
  @javascript
224
  @javascript
Línea 452... Línea 452...
452
      | Event title   | type change test event |
452
      | Event title   | type change test event |
453
      | Type of event | Category               |
453
      | Type of event | Category               |
454
    And I press "Save"
454
    And I press "Save"
455
    And I click on "type change test event" "link"
455
    And I click on "type change test event" "link"
456
    And I should see "Category event"
456
    And I should see "Category event"
-
 
457
 
-
 
458
  @javascript
-
 
459
  Scenario: Group multilang tags are respected on event forms
-
 
460
    Given the "multilang" filter is "on"
-
 
461
    And the "multilang" filter applies to "content and headings"
-
 
462
    And the following "courses" exist:
-
 
463
      | fullname | shortname | format | category |
-
 
464
      | Course 5 | C5        | topics | cata     |
-
 
465
    And the following "groups" exist:
-
 
466
      | name                                                                                           | course | idnumber |
-
 
467
      | <span lang="en" class="multilang">Group</span><span lang="es" class="multilang">Grupo</span> 2 | C5     | G2       |
-
 
468
    And the following "blocks" exist:
-
 
469
      | blockname      | contextlevel | reference | pagetypepattern | defaultregion |
-
 
470
      | calendar_month | Course       | C5        | course-view-*   | side-pre      |
-
 
471
    And I am on the "Course 5" course page logged in as admin
-
 
472
    And I follow "Course calendar"
-
 
473
    # New event form.
-
 
474
    And I press "New event"
-
 
475
    When I set the following fields to these values:
-
 
476
      | Event title   | Group 2 event |
-
 
477
      | Type of event | Group         |
-
 
478
    Then I should see "Group 2"
-
 
479
    And I should not see "GroupGrupo 2"
-
 
480
    And I press "Save"
-
 
481
    And I am on "Course 5" course homepage
-
 
482
    And I follow "Course calendar"
-
 
483
    # Preview event modal.
-
 
484
    And I click on "Group 2 event" "link"
-
 
485
    And I should see "Group 2"
-
 
486
    And I should not see "GroupGrupo 2"
-
 
487
    # Edit event form.
-
 
488
    And I press "Edit"
-
 
489
    And I should see "Group 2"
-
 
490
    And I should not see "GroupGrupo 2"