Moodle release 2.9beta
[moodle.git] / blocks / tests / behat / add_blocks.feature
CommitLineData
550d842e 1@core @core_block
fe856690
DM
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
c94a0d18 7 Background:
759b323e 8 Given the following "users" exist:
fe856690
DM
9 | username | firstname | lastname | email |
10 | student1 | Student | 1 | student1@asd.com |
11 | student2 | Student | 2 | student2@asd.com |
759b323e 12 And the following "courses" exist:
fe856690
DM
13 | fullname | shortname | format |
14 | Course 1 | C1 | topics |
759b323e 15 And the following "course enrolments" exist:
fe856690
DM
16 | user | course | role |
17 | student1 | C1 | student |
18 | student2 | C1 | student |
19 And I log in as "admin"
46a2fbc4 20 And I am on site homepage
fe856690
DM
21 And I follow "Course 1"
22 And I turn editing mode on
23 When I add the "Blog menu" block
c94a0d18
DM
24 Then I should see "View my entries about this course"
25
26 @javascript
27 Scenario: Add a block to a course with Javascript enabled
28
29 Scenario: Add a block to a course with Javascript disabled