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