1 |
efrain |
1 |
@report @report_eventlist
|
|
|
2 |
Feature: Page contains a list of events
|
|
|
3 |
In order to find information about events
|
|
|
4 |
As a user
|
|
|
5 |
I need to check the page contents
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Event list page is viewable and filtering works
|
|
|
9 |
Given I log in as "admin"
|
|
|
10 |
And I navigate to "Reports > Events list" in site administration
|
|
|
11 |
And I should see "Event name"
|
|
|
12 |
And I set the field "eventname" to "phase"
|
|
|
13 |
And I press "filterbutton"
|
|
|
14 |
And I should see "Phase switched"
|
|
|
15 |
And I should not see "Comment created"
|
|
|
16 |
And I press "clearbutton"
|
|
|
17 |
And I set the field "eventcomponent" to "URL"
|
|
|
18 |
And I press "filterbutton"
|
|
|
19 |
And I should see "Course module instance list viewed"
|
|
|
20 |
And I should not see "User added to cohort"
|
|
|
21 |
And I press "clearbutton"
|
|
|
22 |
And I set the field "eventedulevel" to "Teaching"
|
|
|
23 |
And I press "filterbutton"
|
|
|
24 |
And I should see "Attempt deleted"
|
|
|
25 |
And I should not see "Quiz attempt abandoned"
|
|
|
26 |
And I press "clearbutton"
|
|
|
27 |
And I set the field "eventcrud" to "delete"
|
|
|
28 |
And I press "filterbutton"
|
|
|
29 |
And I should see "Cohort deleted"
|
|
|
30 |
And I should not see "Cohort updated"
|
|
|
31 |
And I press "clearbutton"
|
|
|
32 |
And I set the field "eventcomponent" to "Assignment"
|
|
|
33 |
And I set the field "eventedulevel" to "Participating"
|
|
|
34 |
And I press "filterbutton"
|
|
|
35 |
And I should see "A submission has been submitted"
|
|
|
36 |
And I should not see "An extension has been granted"
|
|
|
37 |
And I press "clearbutton"
|
|
|
38 |
And I set the field "eventedulevel" to "Other"
|
|
|
39 |
And I set the field "eventcrud" to "read"
|
|
|
40 |
And I press "filterbutton"
|
|
|
41 |
And I should see "Notes viewed"
|
|
|
42 |
And I should not see "Highscores viewed"
|
|
|
43 |
And I press "clearbutton"
|
|
|
44 |
And I set the field "eventname" to "viewed"
|
|
|
45 |
And I set the field "eventcomponent" to "Forum"
|
|
|
46 |
And I set the field "eventedulevel" to "Participating"
|
|
|
47 |
And I set the field "eventcrud" to "read"
|
|
|
48 |
And I press "filterbutton"
|
|
|
49 |
Then I should see "User report viewed"
|
|
|
50 |
And I should not see "Subscribers viewed"
|
|
|
51 |
|
|
|
52 |
@javascript
|
|
|
53 |
Scenario: Details of an event are viewable
|
|
|
54 |
Given I log in as "admin"
|
|
|
55 |
And I navigate to "Reports > Events list" in site administration
|
|
|
56 |
And I should see "Event name"
|
|
|
57 |
And I follow "Blog association created"
|
|
|
58 |
And I should see "Blog association created"
|
|
|
59 |
And I should see "blog_association"
|
|
|
60 |
And I should see "create"
|
|
|
61 |
And I should see "Log store manager (tool_log)"
|
|
|
62 |
And I follow "\core\event\base"
|
|
|
63 |
Then I should see "core: base"
|