activity_type_messages.feature 2.12 KB
Newer Older
1
@javascript @core @core_messages @core_administration
2
3
4
5
6
7
8
9
Feature: Admins are allowed to see more types of messages than a user
In order to see what types are visible to me
As an admin/student
So I can filter messages

Background:
 Given the following "users" exist:
     | username | password | email | firstname | lastname | institution | authname | role |
10
11
     | userA | Kupuhipa1 | test01@example.com | Pete | Mc | mahara | internal | member |
 Given I log in as "admin" with password "Kupuhipa1"
12
 And I click on "Show Administration Menu"
13
14
15
16
17
18
19
20
 And I follow "Users"
 And I follow "Pete"
 And I follow "Send message"
 And I fill in the following:
 | Subject   | Hi there |
 | Message   | This is a test message |
 And I press "Send message"
 And I log out
21
 Given I log in as "userA" with password "Kupuhipa1"
22
 And I click on "Show User Menu"
23
 When I follow "mail"
24
25
26
27
28
29
30
 And I follow "Hi there"
 And I wait "1" seconds
 And I follow "Reply"
 And I fill in the following:
 | Reply   | Hi yourself |
 And I press "Reply"
 And I log out
31

32
33
Scenario: Selection options to filter messages (Bug 1433342)
 # First check what options an admin has
34
 Given I log in as "admin" with password "Kupuhipa1"
35
 And I click on "Show User Menu"
36
 When I follow "mail"
37
 And the "Activity type:" select box should contain all "Administration messages | Comment | Contact us | Feedback on annotations | Group message | Institution message | Message from other users | New forum post | New page access | Objectionable content | Objectionable content in forum | Repeat virus upload | System message | Virus flag release | Watchlist"
38
 And I log out
39

40
 # Then check what options a normal user has
41
 Given I log in as "userA" with password "Kupuhipa1"
42
 And I click on "Show Menu"
43
44
 And I follow "Groups"
 And I follow "Create group"
45
46
 And I fill in "Group name" with "Jurassic Park"
 And I press "Save group"
47
 And I click on "Show User Menu"
48
 When I follow "mail"
49
 And the "Activity type:" select box should contain all "Comment | Feedback on annotations | Group message | Institution message | Message from other users | New forum post | New page access | Objectionable content in forum | System message | Watchlist"