MDL-38106 lesson: behat now sets introduction
authorDan Poltawski <dan@moodle.com>
Fri, 3 Oct 2014 13:28:47 +0000 (14:28 +0100)
committerDan Poltawski <dan@moodle.com>
Sun, 5 Oct 2014 13:12:59 +0000 (14:12 +0100)
admin/tool/behat/tests/behat/get_and_set_fields.feature
mod/lesson/tests/behat/date_availability.feature
mod/lesson/tests/behat/lesson_navigation.feature
mod/lesson/tests/behat/lesson_review.feature
mod/lesson/tests/behat/password_protection.feature
mod/lesson/tests/behat/time_limit.feature

index 780a315..5e281be 100644 (file)
@@ -159,6 +159,7 @@ Feature: Verify that all form fields values can be get and set
     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.
index 9d75adc..7885749 100644 (file)
@@ -27,6 +27,7 @@ Feature: A teacher can set available from and deadline dates to access a lesson
     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 |
@@ -54,6 +55,7 @@ Feature: A teacher can set available from and deadline dates to access a lesson
     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 |
index 200f313..5cbad7c 100644 (file)
@@ -22,6 +22,7 @@ Feature: In a lesson activity, students can navigate through a series of pages i
     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:
index 053c307..f210c7c 100644 (file)
@@ -22,6 +22,7 @@ Feature: In a lesson activity, students can review the answers they gave to ques
     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 |
index 74548e2..e83b1c8 100644 (file)
@@ -22,6 +22,7 @@ Feature: A teacher can password protect a 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 |
       | Password protected lesson | Yes |
       | id_password | moodle_rules |
     And I follow "Test lesson"
index 9089bae..53fbfc1 100644 (file)
@@ -22,6 +22,7 @@ Feature: A teacher can set a time limit for a 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"