1 |
efrain |
1 |
@block @block_calendar_upcoming
|
|
|
2 |
Feature: View a site event on the frontpage
|
|
|
3 |
In order to view a site event
|
|
|
4 |
As a teacher
|
|
|
5 |
I can view the event in the upcoming events block
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email | idnumber |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com | T1 |
|
|
|
11 |
And the following "blocks" exist:
|
|
|
12 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
|
|
13 |
| calendar_upcoming | System | 1 | site-index | side-pre |
|
|
|
14 |
|
|
|
15 |
@javascript
|
|
|
16 |
Scenario: View a site event in the upcoming events block on the frontpage
|
|
|
17 |
Given I log in as "admin"
|
|
|
18 |
And I create a calendar event with form data:
|
|
|
19 |
| id_eventtype | Site |
|
|
|
20 |
| id_name | My Site Event |
|
|
|
21 |
And I log out
|
|
|
22 |
When I log in as "teacher1"
|
|
|
23 |
And I am on site homepage
|
|
|
24 |
Then I should see "My Site Event" in the "Upcoming events" "block"
|