1 |
efrain |
1 |
@block @block_calendar_month
|
|
|
2 |
Feature: Enable the calendar block on the site front page
|
|
|
3 |
In order to enable the calendar block on the site front page
|
|
|
4 |
As an admin
|
|
|
5 |
I can add the calendar block on the site front page
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: View a site event in the calendar block on the front page
|
|
|
9 |
Given the following "users" exist:
|
|
|
10 |
| username | firstname | lastname | email | idnumber |
|
|
|
11 |
| student1 | Student | 1 | student1@example.com | S1 |
|
|
|
12 |
And the following "blocks" exist:
|
|
|
13 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
14 |
| calendar_month | System | 1 | site-index | side-pre |
|
|
|
15 |
And I log in as "admin"
|
|
|
16 |
And I create a calendar event with form data:
|
|
|
17 |
| id_eventtype | Site |
|
|
|
18 |
| id_name | Site Event |
|
|
|
19 |
And I log out
|
|
|
20 |
When I log in as "student1"
|
|
|
21 |
And I am on site homepage
|
|
|
22 |
And I hover over today in the mini-calendar block
|
|
|
23 |
Then I should see "Site Event"
|