mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +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,7 +17,7 @@ Feature: The search forums block allows users to search for forum posts on cours
|
|||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
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 "Edit settings" node in "Course administration"
|
||||
And I set the field "id_newsitems" to "1"
|
||||
And I press "Save and display"
|
||||
|
@ -28,7 +28,7 @@ Feature: The search forums block allows users to search for forum posts on cours
|
|||
|
||||
Scenario: Use the search forum block in a course without any forum posts
|
||||
Given I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
When I set the following fields to these values:
|
||||
| searchform_search | Moodle |
|
||||
And I press "Go"
|
||||
|
@ -36,12 +36,11 @@ Feature: The search forums block allows users to search for forum posts on cours
|
|||
|
||||
Scenario: Use the search forum block in a course with a hidden forum and search for posts
|
||||
Given 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 new topic to "Announcements" forum with:
|
||||
| Subject | My subject |
|
||||
| Message | My message |
|
||||
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 follow "Announcements"
|
||||
And I navigate to "Edit settings" in current page administration
|
||||
And I expand all fieldsets
|
||||
|
@ -49,7 +48,7 @@ Feature: The search forums block allows users to search for forum posts on cours
|
|||
And I press "Save and return to course"
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Search forums" "block" should exist
|
||||
And I set the following fields to these values:
|
||||
| searchform_search | message |
|
||||
|
@ -58,13 +57,13 @@ Feature: The search forums block allows users to search for forum posts on cours
|
|||
|
||||
Scenario: Use the search forum block in a course and search for posts
|
||||
Given 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 new topic to "Announcements" forum with:
|
||||
| Subject | My subject |
|
||||
| Message | My message |
|
||||
And I log out
|
||||
When I log in as "student1"
|
||||
And I am on course page "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And "Search forums" "block" should exist
|
||||
And I set the following fields to these values:
|
||||
| searchform_search | message |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue