mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
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.
This commit is contained in:
parent
0ea3d45e04
commit
4be0e3541e
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue