MDL-42625 behat: Editing .feature files
[moodle.git] / mod / forum / tests / behat / add_forum.feature
CommitLineData
550d842e 1@mod @mod_forum
e6cb6aed
DM
2Feature: Add forum activities and discussions
3 In order to discuss topics with other users
5d7b6307 4 As a teacher
e6cb6aed
DM
5 I need to add forum activities to moodle courses
6
7 @javascript
8 Scenario: Add a forum and a discussion
9 Given the following "users" exists:
10 | username | firstname | lastname | email |
11 | teacher1 | Teacher | 1 | teacher1@asd.com |
12 And the following "courses" exists:
13 | fullname | shortname | category |
14 | Course 1 | C1 | 0 |
15 And the following "course enrolments" exists:
16 | user | course | role |
17 | teacher1 | C1 | editingteacher |
18 And I log in as "teacher1"
19 And I follow "Course 1"
20 And I turn editing mode on
4d40089d 21 And I add a "Forum" to section "1" and I fill the form with:
e6cb6aed
DM
22 | Forum name | Test forum name |
23 | Forum type | Standard forum for general use |
24 | Description | Test forum description |
25 When I add a new discussion to "Test forum name" forum with:
26 | Subject | Forum post 1 |
27 | Message | This is the body |
e6cb6aed 28 Then I should see "Test forum name"