mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue