@@ -9,9 +9,18 @@ Feature: Comment on a blog entry
9
9
| username | firstname | lastname | email |
10
10
| testuser | Test | User | moodle @example .com |
11
11
| testuser2 | Test2 | User2 | moodle2 @example .com |
12
+ And I log in as "admin"
13
+ And I am on site homepage
14
+ And I turn editing mode on
15
+ # TODO MDL-57120 "Site blogs" link not accessible without navigation block.
16
+ And I add the "Navigation" block if not present
17
+ And I configure the "Navigation" block
18
+ And I set the following fields to these values:
19
+ | Page contexts | Display throughout the entire site |
20
+ And I press "Save changes"
21
+ And I log out
12
22
And I log in as "testuser"
13
- And I expand "Site pages" node
14
- And I follow "Site blogs"
23
+ And I navigate to "Site blogs" node in "Site pages"
15
24
And I follow "Add a new entry"
16
25
And I set the following fields to these values:
17
26
| Entry title | Blog post from user 1 |
@@ -23,8 +32,7 @@ Feature: Comment on a blog entry
23
32
Scenario : Commenting on my own blog entry
24
33
Given I am on site homepage
25
34
And I log in as "testuser"
26
- And I expand "Site pages" node
27
- And I follow "Site blogs"
35
+ And I navigate to "Site blogs" node in "Site pages"
28
36
And I follow "Blog post from user 1"
29
37
And I should see "User 1 blog post content"
30
38
And I follow "Comments (0)"
@@ -39,8 +47,7 @@ Feature: Comment on a blog entry
39
47
Scenario : Deleting my own comment
40
48
Given I am on site homepage
41
49
And I log in as "testuser"
42
- And I expand "Site pages" node
43
- And I follow "Site blogs"
50
+ And I navigate to "Site blogs" node in "Site pages"
44
51
And I follow "Blog post from user 1"
45
52
And I should see "User 1 blog post content"
46
53
And I follow "Comments (0)"
@@ -60,8 +67,7 @@ Feature: Comment on a blog entry
60
67
Given I am on site homepage
61
68
And I log in as "testuser2"
62
69
And I am on site homepage
63
- And I expand "Site pages" node
64
- And I follow "Site blogs"
70
+ And I navigate to "Site blogs" node in "Site pages"
65
71
And I follow "Blog post from user 1"
66
72
When I follow "Comments (0)"
67
73
And I set the field "content" to "$My own >nasty< \" string\" !"
0 commit comments