mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +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
|
@ -15,7 +15,7 @@ Feature: Test importing questions from GIFT format.
|
|||
| user | course | role |
|
||||
| teacher | C1 | editingteacher |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import some GIFT questions
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing questions from WebCT format.
|
|||
| user | course | role |
|
||||
| teacher | C1 | editingteacher |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import some WebCT questions
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing calculated question from WebCT format.
|
|||
| user | course | role |
|
||||
| teacher | C1 | editingteacher |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import a WebCT calculated question
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing questions from Moodle XML format.
|
|||
| user | course | role |
|
||||
| teacher | C1 | editingteacher |
|
||||
And I log in as "teacher"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import some true/false questions from Moodle XML format
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: A teacher can duplicate questions in the question bank
|
|||
| questioncategory | qtype | name | questiontext |
|
||||
| Test questions | essay | Test question to be copied | Write about whatever you want |
|
||||
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 "Questions" node in "Course administration > Question bank"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: A teacher can delete questions in the question bank
|
|||
| questioncategory | qtype | name | questiontext |
|
||||
| Test questions | essay | Test question to be deleted | Write about whatever you want |
|
||||
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 "Questions" node in "Course administration > Question bank"
|
||||
|
||||
@javascript
|
||||
|
@ -39,8 +39,7 @@ Feature: A teacher can delete questions in the question bank
|
|||
|
||||
@javascript
|
||||
Scenario: Delete a question used in a quiz
|
||||
Given I am on course page "Course 1"
|
||||
And I turn editing mode on
|
||||
Given 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 |
|
||||
And I add a "True/False" question to the "Test quiz" quiz with:
|
||||
|
@ -52,7 +51,7 @@ Feature: A teacher can delete questions in the question bank
|
|||
Then I should not see "Test used question to be deleted"
|
||||
And I click on "Also show old questions" "checkbox"
|
||||
And I should see "Test used question to be deleted"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test quiz"
|
||||
And I click on "Preview quiz now" "button"
|
||||
And I should see "Write about whatever you want"
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: A teacher can edit questions in the question bank
|
|||
| questioncategory | qtype | name | questiontext |
|
||||
| Test questions | essay | Test question to be edited | Write about whatever you want |
|
||||
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 "Questions" node in "Course administration > Question bank"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: A teacher can preview questions in the question bank
|
|||
| questioncategory | qtype | name |
|
||||
| Test questions | numerical | Test question to be previewed |
|
||||
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 "Questions" node in "Course administration > Question bank"
|
||||
When I click on "Preview" "link" in the "Test question to be previewed" "table_row"
|
||||
And I switch to "questionpreview" window
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: A teacher can put questions in categories in the question bank
|
|||
| questioncategory | qtype | name | questiontext |
|
||||
| Used category | essay | Test question to be moved | Write about whatever you want |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: A new question category can be created
|
||||
When I navigate to "Categories" node in "Course administration > Question bank"
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: The questions in the question bank can be sorted in various ways
|
|||
| Test questions | essay | B question 2 name | teacher1 | Question 2 text |
|
||||
| Test questions | numerical | C question 3 name | teacher1 | Question 3 text |
|
||||
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 "Questions" node in "Course administration > Question bank"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a drag and drop onto image question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_file_upload
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a drag and drop onto image question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| Drag onto image | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a drag and drop onto image question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a drag and drop onto image questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddimageortext | Drag onto image | xsection |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting drag and drop onto image questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddimageortext | Drag onto image | xsection |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Export a drag and drop onto image question
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing drag and drop onto image questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import drag and drop onto image question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a drag-drop onto image question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddimageortext | Drag onto image | xsection |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_bug_phantomjs
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a drag and drop markers question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_file_upload
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a drag and drop markers question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| Drag markers | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a drag and drop markers question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a drag and drop markers questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddmarker | Drag markers | mkmap |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting drag and drop markers questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddmarker | Drag markers | mkmap |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Export a drag and drop markers question
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing drag and drop markers questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import drag and drop markers question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a drag-drop marker question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddmarker | Drag markers | mkmap |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_bug_phantomjs
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a drag and drop into text question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a drag and drop into text question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| Drag to text | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a drag and drop into text question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a drag and drop into text questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddwtos | Drag to text | fox |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting drag and drop into text questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddwtos | Drag to text | fox |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Export a drag and drop into text question
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing drag and drop into text questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import drag and drop into text question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a drag-drop into text question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | ddwtos | Drag to text | fox |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_bug_phantomjs
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a Description question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Create a Description question with Correct answer as False
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a Description question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| description-001 | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a Description question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a Description question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | description | description-001 | info |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Edit a Description question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting Description questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | description | description-001 | info |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Export a Description question
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing Description questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import a Description question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a Description question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | description | description-001 | info |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating an Essay question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Create an Essay question with Response format set to 'HTML editor'
|
||||
|
|
|
@ -24,7 +24,7 @@ Feature: Test duplicating a quiz containing an Assay question
|
|||
| essay-002 | 1 |
|
||||
| essay-003 | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing 3 Essay questions
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: Test editing an Essay question
|
|||
| Test questions | essay | essay-002 | editorfilepicker |
|
||||
| Test questions | essay | essay-003 | plain |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Edit an Essay question
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: Test exporting Essay questions
|
|||
| Test questions | essay | essay-002 | editorfilepicker |
|
||||
| Test questions | essay | essay-003 | plain |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Export 3 Essay questions
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing Essay questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import Essay question.
|
||||
|
|
|
@ -23,7 +23,7 @@ Feature: Preview Essay questions
|
|||
| Test questions | essay | essay-002 | editorfilepicker |
|
||||
| Test questions | essay | essay-003 | plain |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -17,7 +17,7 @@ Feature: Test all the basic functionality of this question type
|
|||
@javascript
|
||||
Scenario: Create, edit then preview a gapselect question.
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
# Create a new question.
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Import and export select missing words questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: Import and export select missing words questions
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a Matching question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Create a Matching question with 3 subquestions
|
||||
|
|
|
@ -20,7 +20,7 @@ Feature: Test duplicating a quiz containing a Matching question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| matching-001 | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a Matching question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a Matching question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | match | Matching for editing | foursubq |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting Matching questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | match | matching-001 | foursubq |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Export a Matching question
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing Matching questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import Matching question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a Matching question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | match | matching-001 | foursubq |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a Multiple choice question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Create a Multiple choice question with multiple response
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a Multiple choice question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| Multi-choice-001 | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a Multiple choice question
|
||||
|
|
|
@ -22,7 +22,7 @@ Feature: Test editing a Multiple choice question
|
|||
| Test questions | multichoice | Multiple choice for editing | two_of_four |
|
||||
| Test questions | multichoice | Single choice for editing | one_of_four |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Edit a Multiple choice question with multiple response (checkboxes)
|
||||
|
|
|
@ -22,7 +22,7 @@ Feature: Test exporting Multiple choice questions
|
|||
| Test questions | multichoice | Multi-choice-001 | two_of_four |
|
||||
| Test questions | multichoice | Multi-choice-002 | one_of_four |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Export a Multiple choice question
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing Multiple choice questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import Multiple choice question.
|
||||
|
|
|
@ -22,7 +22,7 @@ Feature: Preview a Multiple choice question
|
|||
| Test questions | multichoice | Multi-choice-001 | two_of_four |
|
||||
| Test questions | multichoice | Multi-choice-002 | one_of_four |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a Short answer question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Create a Short answer question
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a Short answer question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| shortanswer-001 | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a Short answer question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a Short answer question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | shortanswer | shortanswer-001 for editing | frogtoad |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting Short answer questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | shortanswer | shortanswer-001 | frogtoad |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Export a Short answer question
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing Short answer questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import Matching question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a Short answer question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | shortanswer | shortanswer-001 | frogtoad |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test creating a True/False question
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Create a True/False question with Correct answer as False
|
||||
|
|
|
@ -20,8 +20,7 @@ Feature: Test duplicating a quiz containing a True/False question
|
|||
And quiz "Test quiz" contains the following questions:
|
||||
| true-false-001 | 1 |
|
||||
And I log in as "admin"
|
||||
And I am on site homepage
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript
|
||||
Scenario: Backup and restore a course containing a True/False question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test editing a True/False question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | truefalse | true-false-001 | true |
|
||||
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 "Question bank" node in "Course administration"
|
||||
|
||||
Scenario: Edit a True/False question
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Test exporting True/False questions
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | truefalse | true-false-001 | true |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
Scenario: Export a True/False question
|
||||
When I navigate to "Export" node in "Course administration > Question bank"
|
||||
|
|
|
@ -15,7 +15,7 @@ Feature: Test importing True/False questions
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
And I log in as "teacher1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
|
||||
@javascript @_file_upload
|
||||
Scenario: import a True/False question.
|
||||
|
|
|
@ -21,7 +21,7 @@ Feature: Preview a Trtue/False question
|
|||
| questioncategory | qtype | name | template |
|
||||
| Test questions | truefalse | true-false-001 | true |
|
||||
Given 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 "Question bank" node in "Course administration"
|
||||
|
||||
@javascript @_switch_window
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue