forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-48943-master' of git://github.com/andrewnicols/moodle
- Loading branch information
Showing
18 changed files
with
1,038 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@core @core_calendar @arn | ||
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@asd.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 "This month" | ||
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 hover over day "1" of this month in the calendar | ||
Then I should see "Event 1:1" | ||
And I should see "Event 1:2" | ||
And I follow "Home" | ||
And I hover over day "1" of this month in the calendar | ||
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 "This month" | ||
And I create a calendar event: | ||
| Type of event | site | | ||
| Event title | Today's event | | ||
When I hover over today in the calendar | ||
Then I should see "Today's event" | ||
And I follow "Home" | ||
And I hover over today in the calendar | ||
And I should see "Today's event" |
Oops, something went wrong.