mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-70152 behat: Forum behat generators use UI
Replace steps that manually add forum and forum post instances via the UI and use Behat generators. This improves the speed of Behat test runs.
This commit is contained in:
parent
505940f91e
commit
640db57c0e
19 changed files with 196 additions and 280 deletions
|
@ -17,16 +17,22 @@ Feature: Allow students to manually mark an activity as complete
|
|||
| user | course | role |
|
||||
| teacher1 | C1 | editingteacher |
|
||||
| student1 | C1 | student |
|
||||
And the following "activity" exists:
|
||||
| activity | forum |
|
||||
| course | C1 |
|
||||
| section | 1 |
|
||||
| name | Test forum name |
|
||||
| intro | Test forum description |
|
||||
And I log in as "teacher1"
|
||||
And I am on "Course 1" course homepage with editing mode on
|
||||
And I navigate to "Settings" in current page administration
|
||||
And I set the following fields to these values:
|
||||
| Enable completion tracking | Yes |
|
||||
And I press "Save and display"
|
||||
And I add a "Forum" to section "1" and I fill the form with:
|
||||
| Forum name | Test forum name |
|
||||
| Description | Test forum description |
|
||||
| Completion tracking | Students can manually mark the activity as completed |
|
||||
And I am on the "Test forum name" "forum activity editing" page
|
||||
And I set the following fields to these values:
|
||||
| completion | 1 |
|
||||
And I press "Save and return to course"
|
||||
And "Student First" user has not completed "Test forum name" activity
|
||||
And I log out
|
||||
And I log in as "student1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue