MDL-55111 behat: Use option which is available everytime for export

recentupcoming option is always available everytime calendar export
is called, rest week and month is optionally shown and may not be
visible. So use recentupcoming event option and export calendar for test
This commit is contained in:
Rajesh Taneja
2016-07-10 11:11:31 +08:00
parent ac8d6cff54
commit d89dc6b123
+4 -4
View File
@@ -28,7 +28,7 @@ Feature: Export calendar 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"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
Then I should see "&preset_what=all&"
@@ -36,7 +36,7 @@ Feature: Export calendar 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"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
Then I should see "&preset_what=courses&"
@@ -44,7 +44,7 @@ Feature: Export calendar 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"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
Then I should see "&preset_what=groups&"
@@ -52,6 +52,6 @@ Feature: Export calendar 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"
And I set the field "Recent and next 60 days" to "1"
When I click on "Get calendar URL" "button"
Then I should see "&preset_what=user&"