And I add a "Lesson" to section "1"
And I set the following fields to these values:
| Name | Test lesson |
+ | Description | Test lesson description |
| available[enabled] | 1 |
And I set the field "deadline[enabled]" to "1"
# Checkbox (AJAX) - Checking "the field matches value" before saving.
And I click on "id_available_enabled" "checkbox"
And I set the following fields to these values:
| Name | Test lesson |
+ | Description | Test lesson description |
| available[day] | 1 |
| available[month] | January |
| available[year] | 2020 |
And I click on "id_deadline_enabled" "checkbox"
And I set the following fields to these values:
| Name | Test lesson |
+ | Description | Test lesson description |
| deadline[day] | 1 |
| deadline[month] | January |
| deadline[year] | 2000 |
And I turn editing mode on
And I add a "Lesson" to section "1" and I fill the form with:
| Name | Test lesson name |
+ | Description | Test lesson description |
And I follow "Test lesson name"
And I follow "Add a content page"
And I set the following fields to these values:
And I turn editing mode on
And I add a "Lesson" to section "1" and I fill the form with:
| Name | Test lesson name |
+ | Description | Test lesson description |
| Display ongoing score | Yes |
| Slideshow | Yes |
| Maximum number of answers | 10 |
And I turn editing mode on
And I add a "Lesson" to section "1" and I fill the form with:
| Name | Test lesson |
+ | Description | Test lesson description |
| Password protected lesson | Yes |
| id_password | moodle_rules |
And I follow "Test lesson"
And I turn editing mode on
And I add a "Lesson" to section "1" and I fill the form with:
| Name | Test lesson |
+ | Description | Test lesson description |
| timed | 1 |
| maxtime | 1 |
And I follow "Test lesson"