MDL-73066 calendar: Behat test fixes

* Specify which close button is being clicked
* Fill out course field when creating a group event
This commit is contained in:
Jun Pataleta 2021-11-30 16:49:22 +08:00
parent f65b92577a
commit a119f8e09c
2 changed files with 6 additions and 8 deletions

View File

@ -82,13 +82,11 @@ Feature: Enable the calendar block in a course and test it's functionality
And I turn editing mode on
And I add the "Calendar" block
And I click on "Full calendar" "link"
And I click on "New event" "button"
And I set the following fields to these values:
| id_eventtype | Group |
| id_name | Group Event |
And I set the following fields to these values:
| Group | Group 1 |
And I press "Save"
And I set the field "course" to "C1"
And I create a calendar event:
| Type of event | group |
| Group | Group 1 |
| Event title | Group Event |
And I log out
Then I log in as "student1"
And I am on "Course 1" course homepage

View File

@ -188,7 +188,7 @@ Feature: Perform basic calendar functionality
When I am viewing site calendar
And I click on "New event" "button"
Then the field "Type of event" matches value "User"
And I click on "Close" "button"
And I click on "Close" "button" in the "New event" "dialogue"
And I set the field "course" to "C1"
When I click on "New event" "button"
Then the field "Type of event" matches value "Course"