Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_calendar_month
2
Feature: Enable the calendar block in a course
3
  In order to enable the calendar block in a course
4
  As a teacher
5
  I can add the calendar block to a course
6
 
7
  @javascript
8
  Scenario: View a site event in the calendar block in a course
9
    Given the following "users" exist:
10
      | username | firstname | lastname | email | idnumber |
11
      | teacher1 | Teacher | 1 | teacher1@example.com | T1 |
12
    And the following "courses" exist:
13
      | fullname | shortname | category |
14
      | Course 1 | C1 | 0 |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | teacher1 | C1 | editingteacher |
18
    When I log in as "admin"
19
    And I create a calendar event with form data:
20
      | id_eventtype | Site |
21
      | id_name | Site Event |
22
    And I log out
23
    Then I log in as "teacher1"
24
    And I am on "Course 1" course homepage with editing mode on
25
    And I add the "Calendar" block
26
    And I hover over today in the mini-calendar block
27
    And I should see "Site Event"