MDL-37662 behat: Add blocks definition
[moodle.git] / blocks / tests / behat / add_blocks.feature
CommitLineData
fe856690
DM
1@blocks
2Feature: Add blocks
3 In order to add more functionality to pages
4 As a teacher
5 I need to add blocks to pages
6
7 @javascript
8 Scenario: Add a block to a course
9 Given the following "users" exists:
10 | username | firstname | lastname | email |
11 | student1 | Student | 1 | student1@asd.com |
12 | student2 | Student | 2 | student2@asd.com |
13 And the following "courses" exists:
14 | fullname | shortname | format |
15 | Course 1 | C1 | topics |
16 And the following "course enrolments" exists:
17 | user | course | role |
18 | student1 | C1 | student |
19 | student2 | C1 | student |
20 And I log in as "admin"
21 And I follow "Course 1"
22 And I turn editing mode on
23 When I add the "Blog menu" block
24 Then I should see "View all of my entries"