From 4be0e3541e912307caf26613238e5bed848bb141 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Sun, 4 Dec 2022 14:06:52 +0800 Subject: [PATCH] MDL-76507 behat: use 'This month' option when exporting This is necessary because 'This week' option is conditionally hidden on weekends making behat builds to fail on those days. Also, the last two steps had to be split because Bennu library adds days with leading zero and moodle removes it by default. --- calendar/tests/behat/export.feature | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/calendar/tests/behat/export.feature b/calendar/tests/behat/export.feature index d0c2f737eec..59ffe87cc17 100644 --- a/calendar/tests/behat/export.feature +++ b/calendar/tests/behat/export.feature @@ -42,10 +42,12 @@ Feature: Export calendar events When 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 "This week" to "1" + And I set the field "This month" to "1" And I press "Export" And I should see "SUMMARY:My event" - And I should see "##today##DTSTART:%Y%m%dT050000Z##" + # We need to split the step in two because Bennu library use days with leading zero and moodle removes it. + And I should see "##today##DTSTART:%Y%m##" + And I should see "##today##%dT050000Z##" Scenario: Generating calendar URL for all events Given I follow "Full calendar"