MDL-43236 behat: Deprecate old steps
[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:
fe856690
DM
8 Given the following "users" exists:
9 | username | firstname | lastname | email |
10 | student1 | Student | 1 | student1@asd.com |
11 | student2 | Student | 2 | student2@asd.com |
12 And the following "courses" exists:
13 | fullname | shortname | format |
14 | Course 1 | C1 | topics |
15 And the following "course enrolments" exists:
16 | user | course | role |
17 | student1 | C1 | student |
18 | student2 | C1 | student |
19 And I log in as "admin"
20 And I follow "Course 1"
21 And I turn editing mode on
22 When I add the "Blog menu" block
c94a0d18
DM
23 Then I should see "View my entries about this course"
24
25 @javascript
26 Scenario: Add a block to a course with Javascript enabled
27
28 Scenario: Add a block to a course with Javascript disabled