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