mirrored from git://git.moodle.org/moodle.git
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-51749-master' of git://github.com/junpataleta/moodle
- Loading branch information
Showing
4 changed files
with
77 additions
and
6 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,57 @@ | ||
@core @core_calendar @core_calendar_export | ||
Feature: Export calendar events | ||
In order to be able to use my calendar events outside of Moodle | ||
As a user | ||
I need to export calendar events in iCalendar format | ||
|
||
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 "student1" | ||
|
||
Scenario: Viewing calendar export options | ||
Given I follow "This month" | ||
When I click on "Export calendar" "button" | ||
Then I should see "All events" | ||
And I should see "Events related to courses" | ||
And I should see "Events related to groups" | ||
And I should see "My personal events" | ||
|
||
Scenario: Generating calendar URL for all events | ||
Given I follow "This month" | ||
And I click on "Export calendar" "button" | ||
And I set the field "All events" to "1" | ||
And I set the field "This week" to "1" | ||
When I click on "Get calendar URL" "button" | ||
Then I should see "&preset_what=all&" | ||
|
||
Scenario: Generating calendar URL for course events | ||
Given I follow "This month" | ||
And I click on "Export calendar" "button" | ||
And I set the field "Events related to courses" to "1" | ||
And I set the field "This week" to "1" | ||
When I click on "Get calendar URL" "button" | ||
Then I should see "&preset_what=courses&" | ||
|
||
Scenario: Generating calendar URL for group events | ||
Given I follow "This month" | ||
And I click on "Export calendar" "button" | ||
And I set the field "Events related to groups" to "1" | ||
And I set the field "This week" to "1" | ||
When I click on "Get calendar URL" "button" | ||
Then I should see "&preset_what=groups&" | ||
|
||
Scenario: Generating calendar URL for user events | ||
Given I follow "This month" | ||
And I click on "Export calendar" "button" | ||
And I set the field "My personal events" to "1" | ||
And I set the field "This week" to "1" | ||
When I click on "Get calendar URL" "button" | ||
Then I should see "&preset_what=user&" |
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