Commit | Line | Data |
---|---|---|
550d842e | 1 | @core @core_block |
fe856690 DM |
2 | Feature: 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 | 9 | | username | firstname | lastname | email | |
0fe86bbd RT |
10 | | student1 | Student | 1 | student1@example.com | |
11 | | student2 | Student | 2 | student2@example.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" | |
fdeeaff9 | 20 | And I am on "Course 1" course homepage with editing mode on |
fe856690 | 21 | When I add the "Blog menu" block |
c94a0d18 DM |
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 |