mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to site home page to actually get to the course. Part of MDL-55611 epic.
This commit is contained in:
parent
3353cfd8c1
commit
fdeeaff954
458 changed files with 1697 additions and 2148 deletions
|
@ -17,8 +17,7 @@ Feature: Add a quiz
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Quiz" to section "1" and I fill the form with:
|
||||
| Name | Test quiz name |
|
||||
| Description | Test quiz description |
|
||||
|
@ -31,7 +30,7 @@ Feature: Add a quiz
|
|||
| Feedback for the response 'False'. | So you think it is false |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I press "Attempt quiz now"
|
||||
Then I should see "Question 1"
|
||||
|
|
|
@ -32,7 +32,7 @@ Feature: Attempt a quiz
|
|||
| TF1 | 1 | |
|
||||
| TF2 | 1 | 3.0 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I click on "True" "radio" in the "First question" "question"
|
||||
|
@ -68,7 +68,7 @@ Feature: Attempt a quiz
|
|||
| Section 3 | 5 | 0 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
@ -111,7 +111,7 @@ Feature: Attempt a quiz
|
|||
| TF1 | 1 |
|
||||
| TF2 | 2 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
Then I should see "Text of the first question"
|
||||
|
|
|
@ -30,7 +30,7 @@ Feature: The various checks that may happen when an attept is started
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
Then I should see "Text of the first question"
|
||||
|
@ -44,7 +44,7 @@ Feature: The various checks that may happen when an attept is started
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
Then I should see "To attempt this quiz you need to know the quiz password" in the "Start attempt" "dialogue"
|
||||
|
@ -62,7 +62,7 @@ Feature: The various checks that may happen when an attept is started
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I click on "Cancel" "button" in the "Start attempt" "dialogue"
|
||||
|
@ -78,7 +78,7 @@ Feature: The various checks that may happen when an attept is started
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I set the field "Quiz password" to "Toad"
|
||||
|
@ -102,7 +102,7 @@ Feature: The various checks that may happen when an attept is started
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I set the field "Quiz password" to "Toad"
|
||||
|
|
|
@ -31,7 +31,7 @@ Feature: Allow students to redo questions in a practice quiz, without starting a
|
|||
| TF1 | 1 | 2 |
|
||||
| TF2 | 1 | 1 |
|
||||
And I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: After completing a question, there is a redo question button that restarts the question
|
||||
|
@ -51,7 +51,7 @@ Feature: Allow students to redo questions in a practice quiz, without starting a
|
|||
And I click on "Check" "button" in the "First question" "question"
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I follow "Attempts: 1"
|
||||
And I follow "Review attempt"
|
||||
|
@ -80,7 +80,7 @@ Feature: Allow students to redo questions in a practice quiz, without starting a
|
|||
And I click on "Submit all and finish" "button" in the "Confirmation" "dialogue"
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I follow "Attempts: 1"
|
||||
And I follow "Review attempt"
|
||||
|
|
|
@ -35,7 +35,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF2 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
@ -44,7 +44,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
And I should not see "Second question"
|
||||
And I log out
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I follow "Attempts: 1"
|
||||
And I follow "Review attempt"
|
||||
|
@ -69,7 +69,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF2 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I click on "True" "radio" in the "First question" "question"
|
||||
|
@ -96,7 +96,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF2 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I press "Finish attempt ..."
|
||||
|
@ -121,7 +121,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF2 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
@ -147,7 +147,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| Section 1 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
@ -174,7 +174,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| Section 2 | 2 | 0 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I press "Next page"
|
||||
|
@ -197,7 +197,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF2 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
@ -220,7 +220,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF2 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
@ -243,7 +243,7 @@ Feature: Attempt a quiz where some questions require that the previous question
|
|||
| TF1 | 1 | 1 |
|
||||
|
||||
When I log in as "student"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
|
||||
|
|
|
@ -26,9 +26,7 @@ Feature: Backup and restore of quizzes
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
| TF2 | 2 |
|
||||
And I am on site homepage
|
||||
When I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
When I am on "Course 1" course homepage with editing mode on
|
||||
And I duplicate "Quiz 1" activity editing the new copy with:
|
||||
| Name | Quiz 2 |
|
||||
And I follow "Quiz 2"
|
||||
|
@ -38,8 +36,7 @@ Feature: Backup and restore of quizzes
|
|||
|
||||
@javascript @_file_upload
|
||||
Scenario: Restore a Moodle 2.8 quiz backup
|
||||
And I am on site homepage
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I navigate to "Restore" node in "Course administration"
|
||||
And I press "Manage backup files"
|
||||
And I upload "mod/quiz/tests/fixtures/moodle_28_quiz.mbz" file to "Files" filemanager
|
||||
|
|
|
@ -33,7 +33,7 @@ Feature: Set a quiz to be marked complete when the student uses all attempts all
|
|||
|
||||
Scenario: student1 uses up both attempts without passing
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And the "Test quiz name" "quiz" activity with "auto" completion should be marked as not complete
|
||||
And I follow "Test quiz name"
|
||||
And I press "Attempt quiz now"
|
||||
|
@ -51,6 +51,6 @@ Feature: Set a quiz to be marked complete when the student uses all attempts all
|
|||
Then "Completed: Test quiz name" "icon" should exist in the "li.modtype_quiz" "css_element"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Activity completion" node in "Course administration > Reports"
|
||||
And "Completed" "icon" should exist in the "Student 1" "table_row"
|
||||
|
|
|
@ -33,7 +33,7 @@ Feature: Set a quiz to be marked complete when the student passes
|
|||
|
||||
Scenario: student1 passes on the first try
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And the "Test quiz name" "quiz" activity with "auto" completion should be marked as not complete
|
||||
And I follow "Test quiz name"
|
||||
And I press "Attempt quiz now"
|
||||
|
@ -44,6 +44,6 @@ Feature: Set a quiz to be marked complete when the student passes
|
|||
Then "Completed: Test quiz name" "icon" should exist in the "li.modtype_quiz" "css_element"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Activity completion" node in "Course administration > Reports"
|
||||
And "Completed" "icon" should exist in the "Student 1" "table_row"
|
||||
|
|
|
@ -18,7 +18,7 @@ Feature: Edit quiz page - adding things
|
|||
| activity | name | intro | course | idnumber |
|
||||
| quiz | Quiz 1 | Quiz 1 for testing the Add menu | C1 | quiz1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then I should see "Editing quiz: Quiz 1"
|
||||
|
@ -108,7 +108,7 @@ Feature: Edit quiz page - adding things
|
|||
in various categories and add them to the question bank.
|
||||
|
||||
# Create a couple of sub categories.
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Categories" node in "Course administration > Question bank"
|
||||
Then I should see "Add category"
|
||||
Then I set the field "Parent category" to "Default for C1"
|
||||
|
@ -190,7 +190,7 @@ Feature: Edit quiz page - adding things
|
|||
|
||||
# Add questions from question bank using the Add menu.
|
||||
# Add Essay 03 from question bank.
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I open the "last" add to quiz menu
|
||||
|
|
|
@ -31,7 +31,7 @@ Feature: Edit quiz page - drag-and-drop
|
|||
| Question B | 1 |
|
||||
| Question C | 2 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Edit quiz page - remove questions
|
|||
| activity | name | course | idnumber |
|
||||
| quiz | Quiz 1 | C1 | quiz1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -19,7 +19,7 @@ Feature: Edit quiz page - pagination
|
|||
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 |
|
||||
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
And quiz "Quiz 1" contains the following questions:
|
||||
| question | page | requireprevious |
|
||||
| TF1 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" should not be visible
|
||||
|
@ -49,7 +49,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| question | page | requireprevious |
|
||||
| TF1 | 1 | 0 |
|
||||
| TF2 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "This question cannot be attempted until the previous question has been completed." "link" should be visible
|
||||
|
@ -67,7 +67,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| question | page | requireprevious |
|
||||
| Random (Test questions) | 1 | 0 |
|
||||
| TF1 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "This question cannot be attempted until the previous question has been completed." "link" should be visible
|
||||
|
@ -87,7 +87,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| TF1 | 1 | 0 |
|
||||
| TF2 | 1 | 0 |
|
||||
| TF3 | 1 | 0 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
When I follow "No restriction on when question 2 can be attempted • Click to change"
|
||||
|
@ -109,7 +109,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| TF1 | 1 | 0 |
|
||||
| TF2 | 1 | 1 |
|
||||
| TF3 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
When I follow "Question 3 cannot be attempted until the previous question 2 has been completed • Click to change"
|
||||
|
@ -131,7 +131,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| Random (Test questions) | 1 | 0 |
|
||||
| TF1 | 1 | 1 |
|
||||
| TF2 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" in the "TF1" "list_item" should not be visible
|
||||
|
@ -153,7 +153,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
And quiz "Quiz 1" contains the following sections:
|
||||
| heading | firstslot | shuffle |
|
||||
| Section 1 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" in the "TF2" "list_item" should not be visible
|
||||
|
@ -175,7 +175,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| heading | firstslot | shuffle |
|
||||
| Section 1 | 1 | 1 |
|
||||
| Section 2 | 2 | 0 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" in the "TF2" "list_item" should not be visible
|
||||
|
@ -193,7 +193,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| question | page | requireprevious |
|
||||
| TF1 | 1 | 1 |
|
||||
| TF2 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" in the "TF2" "list_item" should not be visible
|
||||
|
@ -211,7 +211,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| question | page | requireprevious |
|
||||
| Story | 1 | 0 |
|
||||
| TF1 | 1 | 0 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" in the "TF1" "list_item" should not be visible
|
||||
|
@ -229,7 +229,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| question | page | requireprevious |
|
||||
| Info | 1 | 0 |
|
||||
| TF1 | 1 | 0 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "be attempted" "link" in the "TF1" "list_item" should not be visible
|
||||
|
@ -249,7 +249,7 @@ Feature: Edit quizzes where some questions require the previous one to have been
|
|||
| TF1 | 1 | 0 |
|
||||
| TF2 | 1 | 1 |
|
||||
| TF3 | 1 | 1 |
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
When I move "Question 1" to "After Question 3" in the quiz by clicking the move icon
|
||||
|
|
|
@ -35,7 +35,7 @@ Feature: Edit quiz page - section headings
|
|||
| TF1 | 1 |
|
||||
| TF2 | 2 |
|
||||
| TF3 | 3 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then I should see "Shuffle"
|
||||
|
@ -45,7 +45,7 @@ Feature: Edit quiz page - section headings
|
|||
Given the following "activities" exist:
|
||||
| activity | name | intro | course | idnumber |
|
||||
| quiz | Quiz 1 | Quiz 1 description | C1 | quiz1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I change quiz section heading "" to "This is section one"
|
||||
|
@ -74,7 +74,7 @@ Feature: Edit quiz page - section headings
|
|||
| | 1 | 0 |
|
||||
| Heading 2 | 2 | 0 |
|
||||
| Heading 3 | 3 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I change quiz section heading "" to "This is section one"
|
||||
|
@ -105,7 +105,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 2 | 0 |
|
||||
| Heading 3 | 3 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
When I change quiz section heading "Heading 1" to ""
|
||||
|
@ -143,7 +143,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 2 | 0 |
|
||||
| Heading 3 | 3 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I follow "Remove heading 'Heading 2'"
|
||||
|
@ -172,7 +172,7 @@ Feature: Edit quiz page - section headings
|
|||
| heading | firstslot | shuffle |
|
||||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 2 | 0 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I change quiz section heading "Heading 2" to "Edited heading"
|
||||
|
@ -206,7 +206,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 3 | 0 |
|
||||
| Heading 3 | 5 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I move "TF5" to "After Question 2" in the quiz by clicking the move icon
|
||||
|
@ -238,7 +238,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 3 | 0 |
|
||||
| Heading 3 | 5 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I move "TF1" to "After Question 3" in the quiz by clicking the move icon
|
||||
|
@ -264,7 +264,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 2 | 0 |
|
||||
| Heading 3 | 3 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
Then "Remove heading 'Heading 1'" "link" should not exist
|
||||
|
@ -291,7 +291,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 0 |
|
||||
| Heading 2 | 2 | 0 |
|
||||
| Heading 3 | 3 | 0 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I click on shuffle for section "Heading 1" on the quiz edit page
|
||||
|
@ -319,7 +319,7 @@ Feature: Edit quiz page - section headings
|
|||
| Heading 1 | 1 | 1 |
|
||||
| Heading 2 | 2 | 1 |
|
||||
| Heading 3 | 3 | 1 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I click on shuffle for section "Heading 1" on the quiz edit page
|
||||
|
@ -345,7 +345,7 @@ Feature: Edit quiz page - section headings
|
|||
| TF1 | 1 |
|
||||
| TF2 | 1 |
|
||||
| TF3 | 2 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I click on the "Add" page break icon after question "TF1"
|
||||
|
@ -380,7 +380,7 @@ Feature: Edit quiz page - section headings
|
|||
| TF3 | 3 |
|
||||
| TF4 | 4 |
|
||||
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I click on the "Remove" page break icon after question "TF1"
|
||||
|
@ -419,7 +419,7 @@ Feature: Edit quiz page - section headings
|
|||
| TF9 | 9 |
|
||||
| TF10 | 10 |
|
||||
| TF11 | 11 |
|
||||
When I am on course page "Course 1"
|
||||
When I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
And I click on the "Remove" page break icon after question "TF10"
|
||||
|
|
|
@ -18,7 +18,7 @@ Feature: Edit quiz marks with no attempts
|
|||
| activity | name | course | idnumber | grade | decimalpoints | questiondecimalpoints |
|
||||
| quiz | Quiz 1 | C1 | quiz1 | 20 | 2 | -1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a "True/False" question to the "Quiz 1" quiz with:
|
||||
| Question name | First question |
|
||||
| Question text | Answer me |
|
||||
|
|
|
@ -20,7 +20,7 @@ Feature: Edit quiz marks with attempts
|
|||
| activity | name | course | idnumber | grade | decimalpoints | questiondecimalpoints |
|
||||
| quiz | Quiz 1 | C1 | quiz1 | 20 | 2 | -1 |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I add a "True/False" question to the "Quiz 1" quiz with:
|
||||
| Question name | First question |
|
||||
| Question text | Answer me |
|
||||
|
@ -31,12 +31,12 @@ Feature: Edit quiz marks with attempts
|
|||
| Default mark | 3.0 |
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I navigate to "Edit quiz" in current page administration
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ Feature: Teachers can override the grade for any question
|
|||
| question | page |
|
||||
| TF1 | 1 |
|
||||
And I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I press "Attempt quiz now"
|
||||
And I follow "Finish attempt ..."
|
||||
|
@ -37,7 +37,7 @@ Feature: Teachers can override the grade for any question
|
|||
And I click on "Submit all and finish" "button" in the "Confirmation" "dialogue"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Quiz 1"
|
||||
And I follow "Attempts: 1"
|
||||
And I follow "Review attempt"
|
||||
|
|
|
@ -29,7 +29,7 @@ Feature: Preview a quiz as a teacher
|
|||
| TF1 | 1 | |
|
||||
| TF2 | 1 | 3.0 |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Preview a quiz
|
||||
|
|
|
@ -35,7 +35,7 @@ Feature: Quiz reset
|
|||
|
||||
Scenario: Use course reset to clear all attempt data
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I press "Attempt quiz now"
|
||||
And I set the field "True" to "1"
|
||||
|
@ -43,13 +43,13 @@ Feature: Quiz reset
|
|||
And I press "Submit all and finish"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I navigate to "Reset" node in "Course administration"
|
||||
And I set the following fields to these values:
|
||||
| Delete all quiz attempts | 1 |
|
||||
And I press "Reset course"
|
||||
And I press "Continue"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I navigate to "Results" in current page administration
|
||||
Then I should see "Attempts: 0"
|
||||
|
@ -57,7 +57,7 @@ Feature: Quiz reset
|
|||
@javascript
|
||||
Scenario: Use course reset to remove user overrides.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I navigate to "User overrides" in current page administration
|
||||
And I press "Add user override"
|
||||
|
@ -71,14 +71,14 @@ Feature: Quiz reset
|
|||
| Delete all user overrides | 1 |
|
||||
And I press "Reset course"
|
||||
And I press "Continue"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I navigate to "User overrides" in current page administration
|
||||
Then I should not see "Sam1 Student1"
|
||||
|
||||
Scenario: Use course reset to remove group overrides.
|
||||
When I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I navigate to "Group overrides" in current page administration
|
||||
And I press "Add group override"
|
||||
|
@ -92,7 +92,7 @@ Feature: Quiz reset
|
|||
| Delete all group overrides | 1 |
|
||||
And I press "Reset course"
|
||||
And I press "Continue"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz name"
|
||||
And I navigate to "Group overrides" in current page administration
|
||||
Then I should not see "Group 1"
|
||||
|
|
|
@ -19,8 +19,7 @@ Feature: Settings form fields disabled if not required
|
|||
| student1 | C1 | student |
|
||||
| student2 | C1 | student |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
|
||||
@javascript
|
||||
Scenario: Depending on the number of attempts, different form fields are disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue