@@ -11,34 +11,13 @@ Feature: Add a featured block on the dashboard
11
11
| Course 4 | C4 | 0 | 1 |
12
12
13
13
@javascript
14
- Scenario : Add the block and set 3 featured courses
14
+ Scenario : Add the block, set 4 featured courses and remove one after, only two should display
15
15
Given I log in as "admin"
16
- Then I am on homepage
17
- When I press "Customise this page"
18
- And I add the "Featured Courses" block
16
+ And I set editing mode on
17
+ And I add the "Featured courses" block
19
18
And I configure the "Featured courses" block
20
19
And I expand all fieldsets
21
- Then I should see "Title"
22
- And I set the field "Title" to "My featured courses"
23
- And I press "Add 3 more courses"
24
- Then I set the following fields to these values:
25
- | Selected course 1 | Course 1 |
26
- | Selected course 2 | Course 2 |
27
- | Selected course 3 | Course 3 |
28
- And I set the field "Region" to "content"
29
- And I press "Save changes"
30
- Then I should see "Course 1" in the "My featured courses" "block"
31
- Then I should see "Course 2" in the "My featured courses" "block"
32
- Then I should see "Course 3" in the "My featured courses" "block"
33
-
34
- @javascript
35
- Scenario : Add the block and set 3 featured courses and remove one after, only two should display
36
- Given I log in as "admin"
37
- When I press "Customise this page"
38
- Then I add the "Featured courses" block
39
- And I configure the "Featured courses" block
40
- And I expand all fieldsets
41
- Then I should see "Title"
20
+ And I should see "Title"
42
21
And I set the field "Title" to "My featured courses"
43
22
And I press "Add 3 more courses"
44
23
Then I set the following fields to these values:
0 commit comments