mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-46929 mod_forum: Improve behat tests
This commit is contained in:
parent
e9c46768b5
commit
32a96916a6
@ -25,6 +25,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add the "Latest announcements" block
|
||||
And I navigate to "Edit settings" node in "Course administration"
|
||||
And I expand all fieldsets
|
||||
And I set the field "id_newsitems" to "1"
|
||||
And I press "Save and display"
|
||||
And I add a new topic to "Announcements" forum with:
|
||||
@ -116,7 +117,7 @@ Feature: The forum search allows users to perform advanced searches for forum po
|
||||
@javascript
|
||||
Scenario: Perform an advanced search using tags
|
||||
Given I log in as "student1"
|
||||
And I follow "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Announcements"
|
||||
And I press "Search forums"
|
||||
And I should see "Advanced search"
|
||||
|
@ -1,4 +1,4 @@
|
||||
@mod @mod_forum @core_tag @javascript
|
||||
@mod @mod_forum @core_tag
|
||||
Feature: Edited forum posts handle tags correctly
|
||||
In order to get forum posts properly labelled
|
||||
As a user
|
||||
@ -17,8 +17,7 @@ Feature: Edited forum posts handle tags correctly
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I turn editing mode on
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
@ -27,9 +26,10 @@ Feature: Edited forum posts handle tags correctly
|
||||
| Message | Teacher post message |
|
||||
And I log out
|
||||
|
||||
@javascript
|
||||
Scenario: Forum post edition of custom tags works as expected
|
||||
Given I log in as "student1"
|
||||
And I follow "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I reply "Teacher post subject" post from "Test forum name" forum with:
|
||||
| Subject | Student post subject |
|
||||
| Message | Student post message |
|
||||
@ -48,7 +48,7 @@ Feature: Edited forum posts handle tags correctly
|
||||
And I press "Continue"
|
||||
And I log out
|
||||
And I log in as "teacher1"
|
||||
And I follow "Course 1"
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "Test forum"
|
||||
And I click on "Add a new discussion topic" "button"
|
||||
And I expand all fieldsets
|
||||
|
Loading…
x
Reference in New Issue
Block a user