Skip to content

Commit 2898b4b

Browse files
MOBILE-4798 tests: Add behat tests
1 parent 8bc0e28 commit 2898b4b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/addons/blog/tests/behat/edit-entry.feature

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,33 @@ Feature: Edit blog entries
6767
And I should find "Entry with attachments" in the app
6868
And I should find "stub6.txt" in the app
6969
And I should find "stub7.txt" in the app
70+
71+
Scenario: Changing blog visibility to Users can only see their own blog
72+
Given the following config values are set as admin:
73+
| bloglevel | 1 |
74+
And I entered the app as "testuser"
75+
When I press the user menu button in the app
76+
And I press "Blog entries" in the app
77+
And I press "Add a new entry" in the app
78+
And I press "Publish to" in the app
79+
Then I should not find "Anyone on this site" in the app
80+
81+
Scenario: Changing blog visibility to All site users can see all blog entries
82+
Given the following config values are set as admin:
83+
| bloglevel | 4 |
84+
And I entered the app as "testuser"
85+
When I press the user menu button in the app
86+
And I press "Blog entries" in the app
87+
And I press "Add a new entry" in the app
88+
And I press "Publish to" in the app
89+
Then I should find "Anyone on this site" in the app
90+
91+
Scenario: Changing blog visibility to The world can read entries set to be world-accessible
92+
Given the following config values are set as admin:
93+
| bloglevel | 5 |
94+
And I entered the app as "testuser"
95+
When I press the user menu button in the app
96+
And I press "Blog entries" in the app
97+
And I press "Add a new entry" in the app
98+
And I press "Publish to" in the app
99+
Then I should find "Anyone in the world" in the app

0 commit comments

Comments
 (0)