Merge branch 'MDL-53115-master' of git://github.com/andrewnicols/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2016-04-06 03:32:57 +02:00
commit e44b55f5d0
29 changed files with 45 additions and 116 deletions

View File

@ -15,7 +15,6 @@ Feature: Backup Moodle courses
| data | C2 | data1 | Test data | Database description | 2 |
And I log in as "admin"
@javascript
Scenario: Backup a course providing options
When I backup "Course 1" course using this options:
| Confirmation | Filename | test_backup.mbz |
@ -24,7 +23,6 @@ Feature: Backup Moodle courses
And I should see "URL of backup"
And I should see "Anonymize user information"
@javascript
Scenario: Backup a course with default options
When I backup "Course 1" course using this options:
| Initial | Include calendar events | 0 |
@ -40,13 +38,11 @@ Feature: Backup Moodle courses
And "Include course logs" "checkbox" should exist
And I press "Next"
@javascript
Scenario: Backup a course without blocks
When I backup "Course 1" course using this options:
| 1 | setting_root_blocks | 0 |
Then I should see "Course backup area"
@javascript
Scenario: Backup selecting just one section
When I backup "Course 2" course using this options:
| Schema | Test data | 0 |
@ -61,7 +57,6 @@ Feature: Backup Moodle courses
And I should see "Test assign"
And I should not see "Test data"
@javascript
Scenario: Backup a course using the one click backup button
When I perform a quick backup of course "Course 2"
Then I should see "Restore course"

View File

@ -4,7 +4,6 @@ Feature: Duplicate activities
As a teacher
I need to duplicate activities inside the same course
@javascript
Scenario: Duplicate an activity
Given the following "courses" exist:
| fullname | shortname | category |
@ -23,12 +22,10 @@ Feature: Duplicate activities
| Description | Test database description |
And I duplicate "Test database name" activity
And I wait until section "1" is available
And I open "Test database name" actions menu
And I click on "Edit settings" "link" in the "Test database name" activity
And I set the following fields to these values:
| Name | Original database name |
And I press "Save and return to course"
And I open "Test database name" actions menu
And I click on "Edit settings" "link" in the "Test database name" activity
And I set the following fields to these values:
| Name | Duplicated database name |

View File

@ -29,10 +29,9 @@ Feature: Option to include groups and groupings when importing a course to anoth
And I turn editing mode on
Scenario: Include groups and groupings when importing a course to another course
When I import "Course 1" course into "Course 2" course using this options:
Given I import "Course 1" course into "Course 2" course using this options:
| Initial | Include groups and groupings | 1 |
And I expand "Users" node
And I follow "Groups"
When I navigate to "Groups" node in "Course administration > Users"
Then I should see "Group 1"
And I should see "Group 2"
And I follow "Groupings"
@ -40,12 +39,11 @@ Feature: Option to include groups and groupings when importing a course to anoth
And I should see "Grouping 2"
Scenario: Do not include groups and groupings when importing a course to another course
When I import "Course 1" course into "Course 2" course using this options:
Given I import "Course 1" course into "Course 2" course using this options:
| Initial | Include groups and groupings | 0 |
And I expand "Users" node
And I follow "Groups"
When I navigate to "Groups" node in "Course administration > Users"
Then I should not see "Group 1"
And I should not see "Group 2"
And I follow "Groupings"
And I should not see "Grouping 1"
And I should not see "Grouping 2"
And I should not see "Grouping 2"

View File

@ -4,7 +4,6 @@ Feature: Add choice activity
As a teacher
I need to add choice activities to courses
@javascript
Scenario: Add a choice activity and complete the activity as a student
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -20,7 +20,6 @@ Feature: Allow choice preview
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: Enable the choice preview option and view the activity as a student before the opening time
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice name |

View File

@ -5,7 +5,6 @@ Feature: Add choice activity
I need to add remove block from the choice page
# This tests that the hacky block editing is not borked by legacy forms in choice activity.
@javascript
Scenario: Add a choice activity as admin and check blog menu block should contain link.
Given the following "courses" exist:
| fullname | shortname | category |
@ -31,7 +30,6 @@ Feature: Add choice activity
And I should not see "View all entries about this Choice"
And I should see "Choice Description 1"
@javascript
Scenario: Add a choice activity as teacher and check blog menu block contain choice link.
Given the following "users" exist:
| username | firstname | lastname | email |
@ -64,7 +62,6 @@ Feature: Add choice activity
And I should not see "View all entries about this Choice"
And I should see "Choice Description 1"
@javascript
Scenario: Add a choice activity as teacher (with dual role) and check blog menu block contain choice link.
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -4,7 +4,6 @@ Feature: Teacher can choose whether to allow students to change their choice res
As a teacher
I need to enable the option to change the choice
@javascript
Scenario: Add a choice activity and complete the activity as a student
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -24,7 +24,6 @@ Feature: Include responses from inactive users
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: Enable the choice include inactive option and check that responses from inactive students are visible
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice name |
@ -83,7 +82,6 @@ Feature: Include responses from inactive users
And I should see "Student 3"
And I log out
@javascript
Scenario: Disable the choice include inactive option and check that responses from inactive students are not visible
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice name |

View File

@ -4,7 +4,6 @@ Feature: Limit choice responses
As a teacher
I need to limit the choice responses
@javascript
Scenario: Limit the number of responses allowed for a choice activity and verify the result as students
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -4,7 +4,6 @@ Feature: Multiple option choice response
As a teacher
I need to add choice activities to courses with multiple options enabled
@javascript
Scenario: Complete a choice with multiple options enabled
Given the following "users" exist:
| username | firstname | lastname | email |
@ -33,7 +32,6 @@ Feature: Multiple option choice response
Then I should see "Your selection: Option 1; Option 2"
And I should see "Your choice has been saved"
@javascript
Scenario: Complete a choice with multiple options enabled and limited responses set
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -1,4 +1,4 @@
@mod @mod_choice @javascript
@mod @mod_choice
Feature: Test the display of the choice module on my home
In order to know my status in a choice activity
As a user
@ -21,10 +21,10 @@ Feature: Test the display of the choice module on my home
And I turn editing mode on
And I add a "Choice" to section "1"
And I expand all fieldsets
And I click on "id_timerestrict" "checkbox"
And I set the following fields to these values:
| Choice name | Test choice name |
| Description | Test choice description |
| id_timerestrict| 1 |
| timeclose[day] | 1 |
| timeclose[month] | January |
| timeclose[year] | 2030 |
@ -36,12 +36,10 @@ Feature: Test the display of the choice module on my home
And I press "Save and return to course"
And I log out
@javascript
Scenario: View my home as a student before answering the choice
Given I log in as "student1"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have Choices that need attention"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Not answered yet"
And I log out
@ -56,7 +54,6 @@ Feature: Test the display of the choice module on my home
Then I should not see "You have Choices that need attention"
And I log out
@javascript
Scenario: View my home as a teacher
Given I log in as "student1"
And I follow "Course 1"
@ -68,6 +65,5 @@ Feature: Test the display of the choice module on my home
When I log in as "teacher1"
And I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have Choices that need attention"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "View 1 responses"
And I log out

View File

@ -20,7 +20,6 @@ Feature: A teacher can choose one of 4 options for publishing choice results
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: Do not publish results to students
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice 1 |
@ -36,7 +35,6 @@ Feature: A teacher can choose one of 4 options for publishing choice results
And I should not see "Responses"
And I should not see "Graph display"
@javascript
Scenario: Show results to students after they answer
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice 1 |
@ -56,7 +54,6 @@ Feature: A teacher can choose one of 4 options for publishing choice results
And I should see "Responses"
And I should see "Graph display"
@javascript
Scenario: Show results to students only after the choice is closed
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice 1 |
@ -88,7 +85,6 @@ Feature: A teacher can choose one of 4 options for publishing choice results
And I should see "Responses"
And I should see "Graph display"
@javascript
Scenario: Always show results to students
Given I add a "Choice" to section "1" and I fill the form with:
| Choice name | Choice 1 |

View File

@ -26,7 +26,6 @@ Feature: Teachers can review student progress on all lessons in a course by view
And I press "Save and return to course"
And I follow "Test lesson name"
@javascript
Scenario: View student progress for lesson that was never attempted
Given I follow "Add a content page"
And I set the following fields to these values:
@ -35,7 +34,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -54,7 +53,6 @@ Feature: Teachers can review student progress on all lessons in a course by view
And I follow "Complete report"
Then I should see "No attempts have been made on this lesson"
@javascript
Scenario: View student progress for an incomplete lesson containing both content and question pages
Given I follow "Add a content page"
And I set the following fields to these values:
@ -63,7 +61,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -76,7 +74,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -101,7 +99,6 @@ Feature: Teachers can review student progress on all lessons in a course by view
And I should see "1" in the ".cell.c1" "css_element"
And I should see "0" in the ".cell.c2" "css_element"
@javascript
Scenario: View student progress for a lesson containing both content and question pages
Given I follow "Add a content page"
And I set the following fields to these values:
@ -110,7 +107,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -123,7 +120,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -136,7 +133,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -175,7 +172,6 @@ Feature: Teachers can review student progress on all lessons in a course by view
And I should see "2" in the ".cell.c2" "css_element"
And I should see "1" in the ".cell.c3" "css_element"
@javascript
Scenario: View student attempts in a lesson containing only content pages
Given I follow "Add a content page"
And I set the following fields to these values:
@ -184,7 +180,7 @@ Feature: Teachers can review student progress on all lessons in a course by view
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |

View File

@ -33,7 +33,7 @@ branch table contents
| id_answer_editor_1 | Previous page |
| id_jumpto_1 | Previous page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "Numerical"
And I press "Add a question page"
And I set the following fields to these values:
@ -50,7 +50,6 @@ branch table contents
And I press "Save page"
And I follow "Expanded"
@javascript
Scenario: Edit lesson content page
Given I click on "//th[normalize-space(.)='First page name']/descendant::a[2]" "xpath_element"
When I set the following fields to these values:
@ -74,7 +73,6 @@ branch table contents
And I should see "Congratulations - end of lesson reached"
And I should see "Your score is 1 (out of 1)."
@javascript
Scenario: Edit lesson question page
Given I click on "//th[normalize-space(.)='Hardest question ever']/descendant::a[2]" "xpath_element"
When I set the following fields to these values:
@ -93,4 +91,4 @@ branch table contents
And I press "Submit"
And I should not see "Incorrect answer"
And I should see "Congratulations - end of lesson reached"
And I should see "Your score is 0 (out of 1)."
And I should see "Your score is 0 (out of 1)."

View File

@ -71,7 +71,6 @@ Feature: In a lesson activity, teacher can edit a cluster page
| id_jumpto_0 | Next page |
And I press "Save page"
@javascript
Scenario: Edit lesson cluster page
Given I click on "//th[normalize-space(.)='Cluster']/descendant::a[2]" "xpath_element"
When I set the following fields to these values:

View File

@ -30,7 +30,7 @@ Feature: In a lesson activity, teacher can edit lesson's pages
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -56,7 +56,6 @@ Feature: In a lesson activity, teacher can edit lesson's pages
| id_score_1 | 0 |
And I press "Save page"
@javascript
Scenario: Edit lesson content page
Given I click on "//th[normalize-space(.)='Second page name']/descendant::a[2]" "xpath_element"
When I set the following fields to these values:
@ -92,7 +91,6 @@ Feature: In a lesson activity, teacher can edit lesson's pages
And I should see "Congratulations - end of lesson reached"
And I should see "Your score is 1 (out of 1)."
@javascript
Scenario: Edit lesson question page
Given I click on "//th[normalize-space(.)='Hardest question ever']/descendant::a[2]" "xpath_element"
When I set the following fields to these values:
@ -126,4 +124,4 @@ Feature: In a lesson activity, teacher can edit lesson's pages
And I should not see "Incorrect answer"
And I press "Continue"
And I should see "Congratulations - end of lesson reached"
And I should see "Your score is 1 (out of 1)."
And I should see "Your score is 1 (out of 1)."

View File

@ -3,7 +3,6 @@ Feature: In a lesson activity, teacher can add an essay question
As a teacher
I need to add an essay question in a lesson and grade student attempts
@javascript
Scenario: questions with essay question
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -2,7 +2,6 @@
Feature: In a lesson activity, if custom scoring is not enabled, student should see
some informations at the end of lesson: questions answered, correct answers, grade, score
@javascript
Scenario: Informations at end of lesson if custom scoring not enabled
Given the following "users" exist:
| username | firstname | lastname | email |
@ -30,7 +29,7 @@ Feature: In a lesson activity, if custom scoring is not enabled, student should
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "Numerical"
And I press "Add a question page"
And I set the following fields to these values:

View File

@ -20,7 +20,6 @@ Feature: In a lesson activity, students can navigate through a series of pages i
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: Student navigation with pages and questions
Given I add a "Lesson" to section "1" and I fill the form with:
| Name | Test lesson name |
@ -33,7 +32,7 @@ Feature: In a lesson activity, students can navigate through a series of pages i
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -89,7 +88,6 @@ Feature: In a lesson activity, students can navigate through a series of pages i
And I should see "Congratulations - end of lesson reached"
And I should see "Your score is 0 (out of 1)."
@javascript
Scenario: Student reattempts a question until out of attempts
Given I add a "Lesson" to section "1" and I fill the form with:
| Name | Test lesson name |

View File

@ -22,14 +22,13 @@ Feature: In Dashboard, teacher can see the number of student attempts to lessons
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: number of student attempts
Given I add a "Lesson" to section "1"
And I expand all fieldsets
And I click on "id_deadline_enabled" "checkbox"
And I set the following fields to these values:
| Name | Test lesson name |
| Description | Test lesson description |
| id_deadline_enabled | 1 |
| deadline[day] | 1 |
| deadline[month] | January |
| deadline[year] | 2030 |
@ -51,7 +50,7 @@ Feature: In Dashboard, teacher can see the number of student attempts to lessons
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -143,5 +142,4 @@ Feature: In Dashboard, teacher can see the number of student attempts to lessons
And I log in as "teacher1"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "3 attempts"

View File

@ -4,7 +4,6 @@ Feature: In a lesson activity, students can see their progress viewing a progres
As a teacher
I need to add pages and questions with links between them
@javascript
Scenario: Student navigation with progress bar
Given the following "users" exist:
| username | firstname | lastname | email |
@ -32,7 +31,7 @@ Feature: In a lesson activity, students can see their progress viewing a progres
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |

View File

@ -27,7 +27,6 @@ Feature: In a lesson activity, teachers can review student attempts
And I press "Save and return to course"
And I follow "Test lesson name"
@javascript
Scenario: View student attempts in a lesson containing both content and question pages
Given I follow "Add a content page"
And I set the following fields to these values:
@ -36,7 +35,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -49,7 +48,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -62,7 +61,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Third page name |
| Page contents | Third page contents |
@ -71,7 +70,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_answer_editor_1 | Next page |
| id_jumpto_1 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -112,7 +111,6 @@ Feature: In a lesson activity, teachers can review student attempts
And I should see "Average score"
And I should see "Low score"
@javascript
Scenario: View student attempts in a lesson containing only content pages
Given I follow "Add a content page"
And I set the following fields to these values:
@ -121,7 +119,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Fourth page name |
| Page contents | Fourth page contents |
@ -130,7 +128,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_answer_editor_1 | End of lesson |
| id_jumpto_1 | End of lesson |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Third page name |
| Page contents | Third page contents |
@ -139,7 +137,7 @@ Feature: In a lesson activity, teachers can review student attempts
| id_answer_editor_1 | Next page |
| id_jumpto_1 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |

View File

@ -4,7 +4,6 @@ Feature: In a lesson activity, students can review the answers they gave to ques
As a student
I need to complete a lesson answering all of the questions.
@javascript
Scenario: Student answers questions and then reviews them.
Given the following "users" exist:
| username | firstname | lastname | email |
@ -44,7 +43,7 @@ Feature: In a lesson activity, students can review the answers they gave to ques
| id_response_editor_1 | Incorrect answer |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:

View File

@ -23,7 +23,6 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: A completed lesson with only questions that allows multiple attempts
Given I follow "Test lesson name"
And I follow "Add a question page"
@ -39,7 +38,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -69,10 +68,8 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I should see "Congratulations - end of lesson reached"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Completed, You can re-attempt this lesson"
@javascript
Scenario: A completed lesson with only questions that does not allow multiple attempts
Given I follow "Test lesson name"
And I navigate to "Edit settings" node in "Lesson administration"
@ -92,7 +89,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -123,7 +120,6 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should not see "You have lessons that are due"
@javascript
Scenario: A completed lesson with only content pages that allows multiple attempts
Given I follow "Test lesson name"
And I follow "Add a content page"
@ -133,7 +129,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -152,10 +148,8 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I press "End of lesson"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Completed, You can re-attempt this lesson"
@javascript
Scenario: A completed lesson with only content pages that does not allow multiple attempts
Given I follow "Test lesson name"
And I navigate to "Edit settings" node in "Lesson administration"
@ -169,7 +163,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -189,7 +183,6 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should not see "You have lessons that are due"
@javascript
Scenario: An incomplete lesson with only questions.
Given I follow "Test lesson name"
And I follow "Add a question page"
@ -205,7 +198,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -229,10 +222,8 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I press "Continue"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Lesson has been started, but not yet completed"
@javascript
Scenario: An incomplete lesson with only content pages.
Given I follow "Test lesson name"
And I follow "Add a content page"
@ -242,7 +233,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -260,10 +251,8 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I should see "Second page contents"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "Lesson has been started, but not yet completed"
@javascript
Scenario: A lesson with only questions that has not been started.
Given I follow "Test lesson name"
And I follow "Add a question page"
@ -279,7 +268,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_response_editor_1 | Wrong |
| id_jumpto_1 | This page |
And I press "Save page"
And I set the field "qtype" to "Question"
And I select "Question" from the "qtype" singleselect
And I set the field "Select a question type" to "True/false"
And I press "Add a question page"
And I set the following fields to these values:
@ -296,10 +285,8 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I log in as "student1"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "No attempts have been made on this lesson"
@javascript
Scenario: A lesson with only content pages that has not been started.
Given I follow "Test lesson name"
And I follow "Add a content page"
@ -309,7 +296,7 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -322,7 +309,6 @@ Feature: In Dashboard, a student can see their current status on all lessons wit
And I log in as "student1"
When I click on "Dashboard" "link" in the "Navigation" "block"
Then I should see "You have lessons that are due"
And I click on ".collapsibleregioncaption" "css_element"
And I should see "No attempts have been made on this lesson"
Scenario: Viewing the status for multiple lessons in multiple courses

View File

@ -20,7 +20,6 @@ Feature: In a lesson activity, students can see questions in random order
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: Lesson with two clusters
Given I add a "Lesson" to section "1" and I fill the form with:
| Name | Lesson with clusters |
@ -33,7 +32,7 @@ Feature: In a lesson activity, students can see questions in random order
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |

View File

@ -20,7 +20,6 @@ Feature: In a lesson activity, students can see questions in random order and a
And I follow "Course 1"
And I turn editing mode on
@javascript
Scenario: Lesson with subcluster
Given I add a "Lesson" to section "1" and I fill the form with:
| Name | Lesson with subcluster |

View File

@ -30,7 +30,7 @@ Feature: link to gradebook on the end of lesson page
| id_answer_editor_0 | Next page |
| id_jumpto_0 | Next page |
And I press "Save page"
And I set the field "qtype" to "Add a content page"
And I select "Add a content page" from the "qtype" singleselect
And I set the following fields to these values:
| Page title | Second page name |
| Page contents | Second page contents |
@ -40,7 +40,6 @@ Feature: link to gradebook on the end of lesson page
| id_jumpto_1 | Next page |
And I press "Save page"
@javascript
Scenario: Link to gradebook for non practice lesson
Given I log out
When I log in as "student1"
@ -54,7 +53,6 @@ Feature: link to gradebook on the end of lesson page
And I should see "User report - Student 1"
And I should see "Test lesson"
@javascript
Scenario: No link to gradebook for non graded lesson
Given I follow "Test lesson"
And I navigate to "Edit settings" node in "Lesson administration"
@ -70,7 +68,6 @@ Feature: link to gradebook on the end of lesson page
Then I should see "Congratulations - end of lesson reached"
And I should not see "View grades"
@javascript
Scenario: No link to gradebook for practice lesson
Given I follow "Test lesson"
And I navigate to "Edit settings" node in "Lesson administration"
@ -86,7 +83,6 @@ Feature: link to gradebook on the end of lesson page
Then I should see "Congratulations - end of lesson reached"
And I should not see "View grades"
@javascript
Scenario: No link if Show gradebook to student disabled
Given I follow "Course 1"
And I click on "Edit settings" "link" in the "Administration" "block"
@ -102,7 +98,6 @@ Feature: link to gradebook on the end of lesson page
Then I should see "Congratulations - end of lesson reached"
And I should not see "View grades"
@javascript
Scenario: No link to gradebook if no gradereport/user:view capability
Given I log out
And I log in as "admin"
@ -116,4 +111,4 @@ Feature: link to gradebook on the end of lesson page
And I press "Next page"
And I press "Next page"
Then I should see "Congratulations - end of lesson reached"
And I should not see "View grades"
And I should not see "View grades"

View File

@ -4,7 +4,6 @@ Feature: A teacher can password protect a lesson
As a teacher
I need to set a password to access the lesson
@javascript
Scenario: Accessing as student to a protected lesson
Given the following "users" exist:
| username | firstname | lastname | email |

View File

@ -3,7 +3,6 @@ Feature: In a lesson activity, a non editing teacher can grade essay questions
As a non editing teacher
I need to grade student answers to essay questions in lesson
@javascript
Scenario: non editing teacher grade essay questions
Given the following "users" exist:
| username | firstname | lastname | email |
@ -79,11 +78,11 @@ Feature: In a lesson activity, a non editing teacher can grade essay questions
| Essay score | 1 |
And I press "Save changes"
And I should see "Changes saved"
And I set the field "Separate groups" to "Group A"
And I select "Group A" from the "Separate groups" singleselect
And I should see "Student 1"
And I should not see "Student 2"
And I set the field "Separate groups" to "Group B"
And I select "Group B" from the "Separate groups" singleselect
And I should see "Student 2"
And I should not see "Student 1"
And I set the field "Separate groups" to "Group C"
And I select "Group C" from the "Separate groups" singleselect
And I should see "No one in Group C has answered an essay question yet."