Merge branch 'MDL-72355-master' of git://github.com/mickhawkins/moodle

This commit is contained in:
Adrian Greeve 2021-10-04 10:35:26 +08:00
commit 7a1b3e0f2c
7 changed files with 27 additions and 45 deletions

View file

@ -18,7 +18,7 @@ Feature: Import and edit calendar events
Scenario: Import then edit a calendar event.
Given I log in as "teacher1"
And I view the calendar for "1" "2016"
And I click on "Manage subscriptions" "link"
And I click on "Import or export calendars" "link"
And I press "Import calendar"
And I set the following fields to these values:
| Calendar name | Test Import |
@ -43,7 +43,7 @@ Feature: Import and edit calendar events
Then I should see "Event on 2-20-2017"
And I should see "Event on 2-25-2017"
And I should not see "Event on 2-15-2017"
And I click on "Manage subscriptions" "link"
And I click on "Import or export calendars" "link"
And I press "Remove"
And I view the calendar for "2" "2017"
And I should not see "Event on 2-25-2017"
@ -52,7 +52,7 @@ Feature: Import and edit calendar events
Scenario: Import events using different event types.
Given I log in as "admin"
And I view the calendar for "1" "2016"
And I click on "Manage subscriptions" "link"
And I click on "Import or export calendars" "link"
And I press "Import calendar"
And I set the following fields to these values:
| Calendar name | Test Import |

View file

@ -18,7 +18,8 @@ Feature: Export calendar events
Scenario: Viewing calendar export options
Given I follow "Full calendar"
When I click on "Export calendar" "link"
When I click on "Import or export calendars" "link"
And 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"
@ -26,7 +27,8 @@ Feature: Export calendar events
Scenario: Generating calendar URL for all events
Given I follow "Full calendar"
And I click on "Export calendar" "link"
And I click on "Import or export calendars" "link"
And I click on "Export calendar" "button"
And I set the field "All events" to "1"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
@ -34,7 +36,8 @@ Feature: Export calendar events
Scenario: Generating calendar URL for course events
Given I follow "Full calendar"
And I click on "Export calendar" "link"
And I click on "Import or export calendars" "link"
And I click on "Export calendar" "button"
And I set the field "Events related to courses" to "1"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
@ -42,7 +45,8 @@ Feature: Export calendar events
Scenario: Generating calendar URL for group events
Given I follow "Full calendar"
And I click on "Export calendar" "link"
And I click on "Import or export calendars" "link"
And I click on "Export calendar" "button"
And I set the field "Events related to groups" to "1"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
@ -50,7 +54,8 @@ Feature: Export calendar events
Scenario: Generating calendar URL for category events
Given I follow "Full calendar"
And I click on "Export calendar" "link"
And I click on "Import or export calendars" "link"
And I click on "Export calendar" "button"
And I set the field "Events related to categories" to "1"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
@ -58,7 +63,8 @@ Feature: Export calendar events
Scenario: Generating calendar URL for user events
Given I follow "Full calendar"
And I click on "Export calendar" "link"
And I click on "Import or export calendars" "link"
And I click on "Export calendar" "button"
And I set the field "My personal events" to "1"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"