1 |
efrain |
1 |
@block @block_calendar_month
|
|
|
2 |
Feature: View a site event on the dashboard
|
|
|
3 |
In order to view a site event
|
|
|
4 |
As a student
|
|
|
5 |
I can view the event in the calendar
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email | idnumber |
|
|
|
10 |
| student1 | Student | 1 | student1@example.com | S1 |
|
|
|
11 |
And I log in as "admin"
|
|
|
12 |
And I create a calendar event with form data:
|
|
|
13 |
| id_eventtype | Site |
|
|
|
14 |
| id_name | Site Event |
|
|
|
15 |
And I log out
|
|
|
16 |
|
|
|
17 |
@javascript
|
|
|
18 |
Scenario: View a site event in the calendar block on the dashboard
|
|
|
19 |
Given I log in as "student1"
|
|
|
20 |
When I hover over today in the mini-calendar block
|
|
|
21 |
Then I should see "Site Event"
|
|
|
22 |
|
|
|
23 |
@javascript
|
|
|
24 |
Scenario: The calendar block on the dashboard should be responsive
|
|
|
25 |
Given I log in as "student1"
|
|
|
26 |
When I change viewport size to "1200x1000"
|
|
|
27 |
Then I should see "Site Event"
|
|
|
28 |
And I change viewport size to "600x1000"
|
|
|
29 |
# We need to give the browser a couple seconds to re-render the page after the screen has been resized.
|
|
|
30 |
And I wait "1" seconds
|
|
|
31 |
And I should not see "Site Event"
|
|
|
32 |
When I hover over today in the mini-calendar block responsive view
|
|
|
33 |
And I should see "Site Event"
|