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:
Simey Lameze 2017-03-15 15:13:09 +08:00 committed by Damyon Wiese
parent 3353cfd8c1
commit fdeeaff954
458 changed files with 1697 additions and 2148 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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'

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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