MDL-38106 lesson: behat now sets introduction

This commit is contained in:
Dan Poltawski 2014-10-03 14:28:47 +01:00
parent d83891729a
commit 5b17d81dce
6 changed files with 7 additions and 0 deletions

View 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.

View 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 |

View 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:

View 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 |

View 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"

View 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"