X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/report/log/tests/behat
home
/
cbholdings
/
pasukulu
/
report
/
log
/
tests
/
behat
/
📁
..
📄
course_report_log.feature
(1.03 KB)
📄
filter_log.feature
(1.69 KB)
📄
filter_log_actions.feature
(3.5 KB)
📄
user_log.feature
(3.55 KB)
Editing: filter_log_actions.feature
@report @report_log Feature: In a report, admin can filter log data by action In order to filter log data by action As an admin I need to view the logs and apply a filter Background: Given the following "courses" exist: | fullname | shortname | category | groupmode | | Course 1 | C1 | 0 | 1 | And the following "activity" exists: | activity | assign | | course | C1 | | idnumber | 0001 | | name | Test assignment 1 | | intro | Offline text | | assignsubmission_file_enabled | 0 | | section | 1 | And I log in as "admin" And I am on "Course 1" course homepage with editing mode on # View Action. And I follow "Test assignment 1" # Update Action. And I navigate to "Settings" in current page administration And I press "Save and return to course" # Delete Action. And I delete "Test assignment 1" activity And I log out Scenario: View only create actions. Given I log in as "admin" When I navigate to "Reports > Logs" in site administration And I set the field "menumodaction" to "Create" And I press "Get these logs" And I should not see "Course module updated" And I should not see "The status of the submission has been viewed." And I should not see "Course module deleted" Scenario: View only update actions. Given I log in as "admin" When I navigate to "Reports > Logs" in site administration And I set the field "menumodaction" to "Update" And I press "Get these logs" Then I should see "Course module updated" And I should not see "Course module created" And I should not see "The status of the submission has been viewed." And I should not see "Course module deleted" Scenario: View only view actions. Given I log in as "admin" When I navigate to "Reports > Logs" in site administration And I set the field "menumodaction" to "View" And I press "Get these logs" Then I should see "The status of the submission has been viewed." And I should not see "Course module created" And I should not see "Course module updated" And I should not see "Course module deleted" Scenario: View only delete actions. Given I log in as "admin" When I navigate to "Reports > Logs" in site administration And I set the field "menumodaction" to "Delete" And I press "Get these logs" Then I should see "Course module deleted" And I should not see "Course module created" And I should not see "Course module updated" And I should not see "The status of the submission has been viewed." Scenario: View only changes. Given I log in as "admin" When I navigate to "Reports > Logs" in site administration And I set the field "menumodaction" to "All changes" And I press "Get these logs" Then I should see "Course module deleted" And I should see "Course module updated" And I should not see "The status of the submission has been viewed." Scenario: View all actions. Given I log in as "admin" When I navigate to "Reports > Logs" in site administration And I set the field "menumodaction" to "All actions" And I press "Get these logs" Then I should see "Course module deleted" And I should see "Course module updated" And I should see "The status of the submission has been viewed."
Upload File
Create Folder