mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
0d644fe4e0
This removes the three-month pseudo block from along the side of the main calendar, and deprecates relevant files/methods which will no longer be in use.
48 lines
1.5 KiB
Gherkin
48 lines
1.5 KiB
Gherkin
@core @core_calendar
|
|
Feature: Open calendar popup
|
|
In order to view calendar information
|
|
As a user
|
|
I need to interact with the calendar
|
|
|
|
Background:
|
|
Given the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| student1 | Student | 1 | student1@example.com |
|
|
And the following "courses" exist:
|
|
| fullname | shortname | format |
|
|
| Course 1 | C1 | topics |
|
|
And the following "course enrolments" exist:
|
|
| user | course | role |
|
|
| student1 | C1 | student |
|
|
And I log in as "admin"
|
|
|
|
@javascript
|
|
Scenario: I view calendar details of a day with multiple events
|
|
Given I follow "Full calendar"
|
|
And I create a calendar event:
|
|
| Type of event | site |
|
|
| Event title | Event 1:1 |
|
|
| timestart[day] | 1 |
|
|
And I create a calendar event:
|
|
| Type of event | site |
|
|
| Event title | Event 1:2 |
|
|
| timestart[day] | 1 |
|
|
When I reload the page
|
|
Then I should see "Event 1:1"
|
|
And I should see "Event 1:2"
|
|
And I am on homepage
|
|
When I hover over day "1" of this month in the mini-calendar block
|
|
And I should see "Event 1:1"
|
|
And I should see "Event 1:2"
|
|
|
|
@javascript
|
|
Scenario: I view calendar details for today
|
|
Given I follow "Full calendar"
|
|
When I create a calendar event:
|
|
| Type of event | site |
|
|
| Event title | Today's event |
|
|
Then I should see "Today's event"
|
|
And I am on homepage
|
|
And I hover over today in the mini-calendar block
|
|
And I should see "Today's event"
|