From d89dc6b123d0c7c1ec211c49099333c1da7fd5d8 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Sun, 10 Jul 2016 11:11:23 +0800 Subject: [PATCH] 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 --- calendar/tests/behat/export.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/tests/behat/export.feature b/calendar/tests/behat/export.feature index 97d9d73a82c..c7e9cec94b1 100644 --- a/calendar/tests/behat/export.feature +++ b/calendar/tests/behat/export.feature @@ -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&"